diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 4ae661bc3677..eb9abe24bdf0 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -67,11 +67,6 @@ | |||
67 | #include <asm/uaccess.h> | 67 | #include <asm/uaccess.h> |
68 | #include <asm/system.h> | 68 | #include <asm/system.h> |
69 | 69 | ||
70 | DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics) __read_mostly; | ||
71 | EXPORT_SYMBOL(icmpv6_statistics); | ||
72 | DEFINE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics) __read_mostly; | ||
73 | EXPORT_SYMBOL(icmpv6msg_statistics); | ||
74 | |||
75 | /* | 70 | /* |
76 | * The ICMP socket(s). This is the most convenient way to flow control | 71 | * The ICMP socket(s). This is the most convenient way to flow control |
77 | * our ICMP output as well as maintain a clean interface throughout | 72 | * our ICMP output as well as maintain a clean interface throughout |
@@ -119,7 +114,7 @@ static __inline__ void icmpv6_xmit_unlock(struct sock *sk) | |||
119 | */ | 114 | */ |
120 | void icmpv6_param_prob(struct sk_buff *skb, u8 code, int pos) | 115 | void icmpv6_param_prob(struct sk_buff *skb, u8 code, int pos) |
121 | { | 116 | { |
122 | icmpv6_send(skb, ICMPV6_PARAMPROB, code, pos, skb->dev); | 117 | icmpv6_send(skb, ICMPV6_PARAMPROB, code, pos); |
123 | kfree_skb(skb); | 118 | kfree_skb(skb); |
124 | } | 119 | } |
125 | 120 | ||
@@ -305,8 +300,7 @@ static inline void mip6_addr_swap(struct sk_buff *skb) {} | |||
305 | /* | 300 | /* |
306 | * Send an ICMP message in response to a packet in error | 301 | * Send an ICMP message in response to a packet in error |
307 | */ | 302 | */ |
308 | void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, | 303 | void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) |
309 | struct net_device *dev) | ||
310 | { | 304 | { |
311 | struct net *net = dev_net(skb->dev); | 305 | struct net *net = dev_net(skb->dev); |
312 | struct inet6_dev *idev = NULL; | 306 | struct inet6_dev *idev = NULL; |
@@ -951,7 +945,7 @@ ctl_table ipv6_icmp_table_template[] = { | |||
951 | { }, | 945 | { }, |
952 | }; | 946 | }; |
953 | 947 | ||
954 | struct ctl_table *ipv6_icmp_sysctl_init(struct net *net) | 948 | struct ctl_table * __net_init ipv6_icmp_sysctl_init(struct net *net) |
955 | { | 949 | { |
956 | struct ctl_table *table; | 950 | struct ctl_table *table; |
957 | 951 | ||