diff options
author | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-10 11:30:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-10 11:30:22 -0500 |
commit | 8edf51a5ee38eb40de5449e131fd36450a229430 (patch) | |
tree | d2c5cd3b9a16a09a933ec345e12eb9272bcd0e67 | |
parent | b3277dfaf0257221f83dd861b82c54de4507473e (diff) | |
parent | 483479ecc565b7f5845997138eddf5ecbc2684b1 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[IPV4] devinet: inetdev_init out label moved after RCU assignment
[INET]: style updates for the inet_sock->is_icsk assignment fix
[SCTP]: Fix err_hdr assignment in sctp_init_cause.
[NETFILTER]: tcp conntrack: fix IP_CT_TCP_FLAG_CLOSE_INIT value
[NETFILTER]: nf_nat: fix hanging connections when loading the NAT module
[NETFILTER]: arp_tables: fix userspace compilation
[NETFILTER]: nf_conntrack_ipv6: fix crash when handling fragments
-rw-r--r-- | include/linux/netfilter/nf_conntrack_tcp.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter_arp/arp_tables.h | 1 | ||||
-rw-r--r-- | net/ipv4/af_inet.c | 2 | ||||
-rw-r--r-- | net/ipv4/devinet.c | 3 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_nat_standalone.c | 2 | ||||
-rw-r--r-- | net/ipv6/af_inet6.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_reasm.c | 2 | ||||
-rw-r--r-- | net/sctp/sm_make_chunk.c | 4 |
8 files changed, 11 insertions, 7 deletions
diff --git a/include/linux/netfilter/nf_conntrack_tcp.h b/include/linux/netfilter/nf_conntrack_tcp.h index 6b01ba297727..2f4e98b90cc0 100644 --- a/include/linux/netfilter/nf_conntrack_tcp.h +++ b/include/linux/netfilter/nf_conntrack_tcp.h | |||
@@ -25,7 +25,7 @@ enum tcp_conntrack { | |||
25 | #define IP_CT_TCP_FLAG_SACK_PERM 0x02 | 25 | #define IP_CT_TCP_FLAG_SACK_PERM 0x02 |
26 | 26 | ||
27 | /* This sender sent FIN first */ | 27 | /* This sender sent FIN first */ |
28 | #define IP_CT_TCP_FLAG_CLOSE_INIT 0x03 | 28 | #define IP_CT_TCP_FLAG_CLOSE_INIT 0x04 |
29 | 29 | ||
30 | #ifdef __KERNEL__ | 30 | #ifdef __KERNEL__ |
31 | 31 | ||
diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h index 0be235418a2f..24c8786d12e9 100644 --- a/include/linux/netfilter_arp/arp_tables.h +++ b/include/linux/netfilter_arp/arp_tables.h | |||
@@ -190,6 +190,7 @@ struct arpt_replace | |||
190 | 190 | ||
191 | /* The argument to ARPT_SO_ADD_COUNTERS. */ | 191 | /* The argument to ARPT_SO_ADD_COUNTERS. */ |
192 | #define arpt_counters_info xt_counters_info | 192 | #define arpt_counters_info xt_counters_info |
193 | #define arpt_counters xt_counters | ||
193 | 194 | ||
194 | /* The argument to ARPT_SO_GET_ENTRIES. */ | 195 | /* The argument to ARPT_SO_GET_ENTRIES. */ |
195 | struct arpt_get_entries | 196 | struct arpt_get_entries |
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d60fd7321e63..864009643675 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -305,7 +305,7 @@ lookup_protocol: | |||
305 | sk->sk_reuse = 1; | 305 | sk->sk_reuse = 1; |
306 | 306 | ||
307 | inet = inet_sk(sk); | 307 | inet = inet_sk(sk); |
308 | inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK; | 308 | inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0; |
309 | 309 | ||
310 | if (SOCK_RAW == sock->type) { | 310 | if (SOCK_RAW == sock->type) { |
311 | inet->num = protocol; | 311 | inet->num = protocol; |
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 25c8a42965df..480ace9819f6 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -174,9 +174,10 @@ struct in_device *inetdev_init(struct net_device *dev) | |||
174 | ip_mc_init_dev(in_dev); | 174 | ip_mc_init_dev(in_dev); |
175 | if (dev->flags & IFF_UP) | 175 | if (dev->flags & IFF_UP) |
176 | ip_mc_up(in_dev); | 176 | ip_mc_up(in_dev); |
177 | out: | 177 | |
178 | /* we can receive as soon as ip_ptr is set -- do this last */ | 178 | /* we can receive as soon as ip_ptr is set -- do this last */ |
179 | rcu_assign_pointer(dev->ip_ptr, in_dev); | 179 | rcu_assign_pointer(dev->ip_ptr, in_dev); |
180 | out: | ||
180 | return in_dev; | 181 | return in_dev; |
181 | out_kfree: | 182 | out_kfree: |
182 | kfree(in_dev); | 183 | kfree(in_dev); |
diff --git a/net/ipv4/netfilter/nf_nat_standalone.c b/net/ipv4/netfilter/nf_nat_standalone.c index 730a7a44c883..00d6dea9f7f3 100644 --- a/net/ipv4/netfilter/nf_nat_standalone.c +++ b/net/ipv4/netfilter/nf_nat_standalone.c | |||
@@ -123,7 +123,7 @@ nf_nat_fn(unsigned int hooknum, | |||
123 | 123 | ||
124 | nat = nfct_nat(ct); | 124 | nat = nfct_nat(ct); |
125 | if (!nat) | 125 | if (!nat) |
126 | return NF_DROP; | 126 | return NF_ACCEPT; |
127 | 127 | ||
128 | switch (ctinfo) { | 128 | switch (ctinfo) { |
129 | case IP_CT_RELATED: | 129 | case IP_CT_RELATED: |
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 832a5e6e2d7e..0e0e4262f4dc 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -171,7 +171,7 @@ lookup_protocol: | |||
171 | sk->sk_reuse = 1; | 171 | sk->sk_reuse = 1; |
172 | 172 | ||
173 | inet = inet_sk(sk); | 173 | inet = inet_sk(sk); |
174 | inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK; | 174 | inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0; |
175 | 175 | ||
176 | if (SOCK_RAW == sock->type) { | 176 | if (SOCK_RAW == sock->type) { |
177 | inet->num = protocol; | 177 | inet->num = protocol; |
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 37e5fca923aa..d9c15402ba66 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c | |||
@@ -835,6 +835,8 @@ void nf_ct_frag6_output(unsigned int hooknum, struct sk_buff *skb, | |||
835 | s->nfct_reasm = skb; | 835 | s->nfct_reasm = skb; |
836 | 836 | ||
837 | s2 = s->next; | 837 | s2 = s->next; |
838 | s->next = NULL; | ||
839 | |||
838 | NF_HOOK_THRESH(PF_INET6, hooknum, s, in, out, okfn, | 840 | NF_HOOK_THRESH(PF_INET6, hooknum, s, in, out, okfn, |
839 | NF_IP6_PRI_CONNTRACK_DEFRAG + 1); | 841 | NF_IP6_PRI_CONNTRACK_DEFRAG + 1); |
840 | s = s2; | 842 | s = s2; |
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index f0bbe36799cf..167d888d1df2 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -124,8 +124,8 @@ void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code, | |||
124 | padlen = len % 4; | 124 | padlen = len % 4; |
125 | err.length = htons(len); | 125 | err.length = htons(len); |
126 | len += padlen; | 126 | len += padlen; |
127 | sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err); | 127 | chunk->subh.err_hdr = sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err); |
128 | chunk->subh.err_hdr = sctp_addto_chunk(chunk, paylen, payload); | 128 | sctp_addto_chunk(chunk, paylen, payload); |
129 | } | 129 | } |
130 | 130 | ||
131 | /* 3.3.2 Initiation (INIT) (1) | 131 | /* 3.3.2 Initiation (INIT) (1) |