Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e5e70f13
Commit
e5e70f13
authored
Mar 31, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6
parents
96531b37
3a57ff0c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
27 deletions
+36
-27
CREDITS
CREDITS
+3
-3
include/linux/inetdevice.h
include/linux/inetdevice.h
+0
-2
include/linux/netfilter_ipv4/ip_conntrack.h
include/linux/netfilter_ipv4/ip_conntrack.h
+2
-1
net/atm/mpoa_proc.c
net/atm/mpoa_proc.c
+1
-1
net/ipv4/devinet.c
net/ipv4/devinet.c
+1
-0
net/ipv4/igmp.c
net/ipv4/igmp.c
+13
-15
net/ipv4/netfilter/ipt_REJECT.c
net/ipv4/netfilter/ipt_REJECT.c
+10
-1
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+6
-4
No files found.
CREDITS
View file @
e5e70f13
...
...
@@ -3511,9 +3511,9 @@ E: yoshfuji@linux-ipv6.org
W: http://www.yoshifuji.org/~hideaki/
P: 1024D/E0620EEA 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
D: IPv6 and other networking related stuff
D: USAGI/WIDE Project,
The University of Tokyo
S:
Green House #102, 1-15-5, Nishikata,
S:
Bunkyo, Tokyo 113-0024
D: USAGI/WIDE Project,
Keio University
S:
Jeunet Palace Kawasaki #1-201, 10-2, Furukawa-cho, Saiwai-ku
S:
Kawasaki, Kanagawa 212-0025
S: Japan
N: Eric Youngdale
...
...
include/linux/inetdevice.h
View file @
e5e70f13
...
...
@@ -36,8 +36,6 @@ struct in_device
rwlock_t
lock
;
int
dead
;
struct
in_ifaddr
*
ifa_list
;
/* IP ifaddr chain */
int
mc_initted
;
struct
ip_mc_list
*
mc_list
;
/* IP multicast filter chain */
rwlock_t
mc_lock
;
/* for mc_tomb */
struct
ip_mc_list
*
mc_tomb
;
...
...
include/linux/netfilter_ipv4/ip_conntrack.h
View file @
e5e70f13
...
...
@@ -156,7 +156,8 @@ struct ip_conntrack_expect
union
ip_conntrack_expect_help
help
;
};
#include <linux/netfilter_ipv4/ip_conntrack_helper.h>
struct
ip_conntrack_helper
;
struct
ip_conntrack
{
/* Usage count in here is 1 for hash table/destruct timer, 1 per skb,
...
...
net/atm/mpoa_proc.c
View file @
e5e70f13
...
...
@@ -103,7 +103,7 @@ static ssize_t proc_mpc_read(struct file *file, char *buff,
size_t
count
,
loff_t
*
pos
){
unsigned
long
page
=
0
;
unsigned
char
*
temp
;
ssize_t
length
=
0
;
int
length
=
0
;
int
i
=
0
;
struct
mpoa_client
*
mpc
=
mpcs
;
in_cache_entry
*
in_entry
;
...
...
net/ipv4/devinet.c
View file @
e5e70f13
...
...
@@ -165,6 +165,7 @@ struct in_device *inetdev_init(struct net_device *dev)
#ifdef CONFIG_SYSCTL
devinet_sysctl_register
(
in_dev
,
&
in_dev
->
cnf
);
#endif
ip_mc_init_dev
(
in_dev
);
if
(
dev
->
flags
&
IFF_UP
)
ip_mc_up
(
in_dev
);
out:
...
...
net/ipv4/igmp.c
View file @
e5e70f13
...
...
@@ -1217,8 +1217,8 @@ void ip_mc_down(struct in_device *in_dev)
ASSERT_RTNL
();
if
(
!
in_dev
->
mc_initted
)
return
;
for
(
i
=
in_dev
->
mc_list
;
i
;
i
=
i
->
next
)
igmp_group_dropped
(
i
)
;
#ifdef CONFIG_IP_MULTICAST
in_dev
->
mr_ifc_count
=
0
;
...
...
@@ -1227,24 +1227,14 @@ void ip_mc_down(struct in_device *in_dev)
in_dev
->
mr_gq_running
=
0
;
if
(
del_timer
(
&
in_dev
->
mr_gq_timer
))
__in_dev_put
(
in_dev
);
#endif
for
(
i
=
in_dev
->
mc_list
;
i
;
i
=
i
->
next
)
igmp_group_dropped
(
i
);
#ifdef CONFIG_IP_MULTICAST
igmpv3_clear_delrec
(
in_dev
);
#endif
ip_mc_dec_group
(
in_dev
,
IGMP_ALL_HOSTS
);
}
/* Device going up */
void
ip_mc_up
(
struct
in_device
*
in_dev
)
void
ip_mc_init_dev
(
struct
in_device
*
in_dev
)
{
struct
ip_mc_list
*
i
;
ASSERT_RTNL
();
in_dev
->
mc_tomb
=
0
;
...
...
@@ -1261,12 +1251,20 @@ void ip_mc_up(struct in_device *in_dev)
#endif
in_dev
->
mc_lock
=
RW_LOCK_UNLOCKED
;
}
/* Device going up */
void
ip_mc_up
(
struct
in_device
*
in_dev
)
{
struct
ip_mc_list
*
i
;
ASSERT_RTNL
();
ip_mc_inc_group
(
in_dev
,
IGMP_ALL_HOSTS
);
for
(
i
=
in_dev
->
mc_list
;
i
;
i
=
i
->
next
)
igmp_group_added
(
i
);
in_dev
->
mc_initted
=
1
;
}
/*
...
...
net/ipv4/netfilter/ipt_REJECT.c
View file @
e5e70f13
...
...
@@ -24,6 +24,9 @@
#include <net/route.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ipt_REJECT.h>
#ifdef CONFIG_BRIDGE_NETFILTER
#include <linux/netfilter_bridge.h>
#endif
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Netfilter Core Team <coreteam@netfilter.org>"
);
...
...
@@ -56,7 +59,13 @@ static inline struct rtable *route_reverse(struct sk_buff *skb, int hook)
struct
flowi
fl
=
{};
struct
rtable
*
rt
;
if
(
hook
!=
NF_IP_FORWARD
)
{
/* We don't require ip forwarding to be enabled to be able to
* send a RST reply for bridged traffic. */
if
(
hook
!=
NF_IP_FORWARD
#ifdef CONFIG_BRIDGE_NETFILTER
||
(
skb
->
nf_bridge
&&
skb
->
nf_bridge
->
mask
&
BRNF_BRIDGED
)
#endif
)
{
fl
.
nl_u
.
ip4_u
.
daddr
=
iph
->
saddr
;
if
(
hook
==
NF_IP_LOCAL_IN
)
fl
.
nl_u
.
ip4_u
.
saddr
=
iph
->
daddr
;
...
...
net/ipv6/tcp_ipv6.c
View file @
e5e70f13
...
...
@@ -1639,7 +1639,7 @@ static int tcp_v6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)
no_tcp_socket:
if
(
!
xfrm6_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
goto
discard_
and_relse
;
goto
discard_
it
;
if
(
skb
->
len
<
(
th
->
doff
<<
2
)
||
tcp_checksum_complete
(
skb
))
{
bad_packet:
...
...
@@ -1662,12 +1662,14 @@ static int tcp_v6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)
goto
discard_it
;
do_time_wait:
if
(
!
xfrm6_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
goto
discard_and_relse
;
if
(
!
xfrm6_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
{
tcp_tw_put
((
struct
tcp_tw_bucket
*
)
sk
);
goto
discard_it
;
}
if
(
skb
->
len
<
(
th
->
doff
<<
2
)
||
tcp_checksum_complete
(
skb
))
{
TCP_INC_STATS_BH
(
TcpInErrs
);
sock_put
(
sk
);
tcp_tw_put
((
struct
tcp_tw_bucket
*
)
sk
);
goto
discard_it
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment