diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:43:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:43:29 -0400 |
commit | db6d8c7a4027b48d797b369a53f8470aaeed7063 (patch) | |
tree | e140c104a89abc2154e1f41a7db8ebecbb6fa0b4 /net/ipv6/af_inet6.c | |
parent | 3a533374283aea50eab3976d8a6d30532175f009 (diff) | |
parent | fb65a7c091529bfffb1262515252c0d0f6241c5c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (1232 commits)
iucv: Fix bad merging.
net_sched: Add size table for qdiscs
net_sched: Add accessor function for packet length for qdiscs
net_sched: Add qdisc_enqueue wrapper
highmem: Export totalhigh_pages.
ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
net: Use standard structures for generic socket address structures.
ipv6 netns: Make several "global" sysctl variables namespace aware.
netns: Use net_eq() to compare net-namespaces for optimization.
ipv6: remove unused macros from net/ipv6.h
ipv6: remove unused parameter from ip6_ra_control
tcp: fix kernel panic with listening_get_next
tcp: Remove redundant checks when setting eff_sacks
tcp: options clean up
tcp: Fix MD5 signatures for non-linear skbs
sctp: Update sctp global memory limit allocations.
sctp: remove unnecessary byteshifting, calculate directly in big-endian
sctp: Allow only 1 listening socket with SO_REUSEADDR
sctp: Do not leak memory on multiple listen() calls
sctp: Support ipv6only AF_INET6 sockets.
...
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index e84b3fd17fb4..3d828bc4b1cf 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -7,8 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Adapted from linux/net/ipv4/af_inet.c | 8 | * Adapted from linux/net/ipv4/af_inet.c |
9 | * | 9 | * |
10 | * $Id: af_inet6.c,v 1.66 2002/02/01 22:01:04 davem Exp $ | ||
11 | * | ||
12 | * Fixes: | 10 | * Fixes: |
13 | * piggy, Karl Knutson : Socket protocol table | 11 | * piggy, Karl Knutson : Socket protocol table |
14 | * Hideaki YOSHIFUJI : sin6_scope_id support | 12 | * Hideaki YOSHIFUJI : sin6_scope_id support |
@@ -61,9 +59,7 @@ | |||
61 | 59 | ||
62 | #include <asm/uaccess.h> | 60 | #include <asm/uaccess.h> |
63 | #include <asm/system.h> | 61 | #include <asm/system.h> |
64 | #ifdef CONFIG_IPV6_MROUTE | ||
65 | #include <linux/mroute6.h> | 62 | #include <linux/mroute6.h> |
66 | #endif | ||
67 | 63 | ||
68 | MODULE_AUTHOR("Cast of dozens"); | 64 | MODULE_AUTHOR("Cast of dozens"); |
69 | MODULE_DESCRIPTION("IPv6 protocol stack for Linux"); | 65 | MODULE_DESCRIPTION("IPv6 protocol stack for Linux"); |
@@ -373,7 +369,7 @@ int inet6_release(struct socket *sock) | |||
373 | 369 | ||
374 | EXPORT_SYMBOL(inet6_release); | 370 | EXPORT_SYMBOL(inet6_release); |
375 | 371 | ||
376 | int inet6_destroy_sock(struct sock *sk) | 372 | void inet6_destroy_sock(struct sock *sk) |
377 | { | 373 | { |
378 | struct ipv6_pinfo *np = inet6_sk(sk); | 374 | struct ipv6_pinfo *np = inet6_sk(sk); |
379 | struct sk_buff *skb; | 375 | struct sk_buff *skb; |
@@ -391,8 +387,6 @@ int inet6_destroy_sock(struct sock *sk) | |||
391 | 387 | ||
392 | if ((opt = xchg(&np->opt, NULL)) != NULL) | 388 | if ((opt = xchg(&np->opt, NULL)) != NULL) |
393 | sock_kfree_s(sk, opt, opt->tot_len); | 389 | sock_kfree_s(sk, opt, opt->tot_len); |
394 | |||
395 | return 0; | ||
396 | } | 390 | } |
397 | 391 | ||
398 | EXPORT_SYMBOL_GPL(inet6_destroy_sock); | 392 | EXPORT_SYMBOL_GPL(inet6_destroy_sock); |
@@ -956,9 +950,9 @@ static int __init inet6_init(void) | |||
956 | err = icmpv6_init(); | 950 | err = icmpv6_init(); |
957 | if (err) | 951 | if (err) |
958 | goto icmp_fail; | 952 | goto icmp_fail; |
959 | #ifdef CONFIG_IPV6_MROUTE | 953 | err = ip6_mr_init(); |
960 | ip6_mr_init(); | 954 | if (err) |
961 | #endif | 955 | goto ipmr_fail; |
962 | err = ndisc_init(); | 956 | err = ndisc_init(); |
963 | if (err) | 957 | if (err) |
964 | goto ndisc_fail; | 958 | goto ndisc_fail; |
@@ -1061,6 +1055,8 @@ netfilter_fail: | |||
1061 | igmp_fail: | 1055 | igmp_fail: |
1062 | ndisc_cleanup(); | 1056 | ndisc_cleanup(); |
1063 | ndisc_fail: | 1057 | ndisc_fail: |
1058 | ip6_mr_cleanup(); | ||
1059 | ipmr_fail: | ||
1064 | icmpv6_cleanup(); | 1060 | icmpv6_cleanup(); |
1065 | icmp_fail: | 1061 | icmp_fail: |
1066 | unregister_pernet_subsys(&inet6_net_ops); | 1062 | unregister_pernet_subsys(&inet6_net_ops); |
@@ -1115,6 +1111,7 @@ static void __exit inet6_exit(void) | |||
1115 | ipv6_netfilter_fini(); | 1111 | ipv6_netfilter_fini(); |
1116 | igmp6_cleanup(); | 1112 | igmp6_cleanup(); |
1117 | ndisc_cleanup(); | 1113 | ndisc_cleanup(); |
1114 | ip6_mr_cleanup(); | ||
1118 | icmpv6_cleanup(); | 1115 | icmpv6_cleanup(); |
1119 | rawv6_exit(); | 1116 | rawv6_exit(); |
1120 | 1117 | ||