diff options
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r-- | net/ipv6/exthdrs.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 1e89efd38a0c..cee06b1655c1 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/in6.h> | 32 | #include <linux/in6.h> |
33 | #include <linux/icmpv6.h> | 33 | #include <linux/icmpv6.h> |
34 | 34 | ||
35 | #include <net/dst.h> | ||
35 | #include <net/sock.h> | 36 | #include <net/sock.h> |
36 | #include <net/snmp.h> | 37 | #include <net/snmp.h> |
37 | 38 | ||
@@ -318,18 +319,8 @@ void __init ipv6_destopt_init(void) | |||
318 | printk(KERN_ERR "ipv6_destopt_init: Could not register protocol\n"); | 319 | printk(KERN_ERR "ipv6_destopt_init: Could not register protocol\n"); |
319 | } | 320 | } |
320 | 321 | ||
321 | /******************************** | ||
322 | NONE header. No data in packet. | ||
323 | ********************************/ | ||
324 | |||
325 | static int ipv6_nodata_rcv(struct sk_buff *skb) | ||
326 | { | ||
327 | kfree_skb(skb); | ||
328 | return 0; | ||
329 | } | ||
330 | |||
331 | static struct inet6_protocol nodata_protocol = { | 322 | static struct inet6_protocol nodata_protocol = { |
332 | .handler = ipv6_nodata_rcv, | 323 | .handler = dst_discard, |
333 | .flags = INET6_PROTO_NOPOLICY, | 324 | .flags = INET6_PROTO_NOPOLICY, |
334 | }; | 325 | }; |
335 | 326 | ||