diff options
Diffstat (limited to 'net/ipv6/udp.c')
| -rw-r--r-- | net/ipv6/udp.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index eff050ac7049..390d750449ce 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
| @@ -51,6 +51,7 @@ | |||
| 51 | #include <net/udp.h> | 51 | #include <net/udp.h> |
| 52 | #include <net/raw.h> | 52 | #include <net/raw.h> |
| 53 | #include <net/inet_common.h> | 53 | #include <net/inet_common.h> |
| 54 | #include <net/tcp_states.h> | ||
| 54 | 55 | ||
| 55 | #include <net/ip6_checksum.h> | 56 | #include <net/ip6_checksum.h> |
| 56 | #include <net/xfrm.h> | 57 | #include <net/xfrm.h> |
| @@ -58,7 +59,7 @@ | |||
| 58 | #include <linux/proc_fs.h> | 59 | #include <linux/proc_fs.h> |
| 59 | #include <linux/seq_file.h> | 60 | #include <linux/seq_file.h> |
| 60 | 61 | ||
| 61 | DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6); | 62 | DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6) __read_mostly; |
| 62 | 63 | ||
| 63 | /* Grrr, addr_type already calculated by caller, but I don't want | 64 | /* Grrr, addr_type already calculated by caller, but I don't want |
| 64 | * to add some silly "cookie" argument to this method just for that. | 65 | * to add some silly "cookie" argument to this method just for that. |
| @@ -477,8 +478,7 @@ static int udpv6_rcv(struct sk_buff **pskb, unsigned int *nhoffp) | |||
| 477 | /* RFC 2460 section 8.1 says that we SHOULD log | 478 | /* RFC 2460 section 8.1 says that we SHOULD log |
| 478 | this error. Well, it is reasonable. | 479 | this error. Well, it is reasonable. |
| 479 | */ | 480 | */ |
| 480 | LIMIT_NETDEBUG( | 481 | LIMIT_NETDEBUG(KERN_INFO "IPv6: udp checksum is 0\n"); |
| 481 | printk(KERN_INFO "IPv6: udp checksum is 0\n")); | ||
| 482 | goto discard; | 482 | goto discard; |
| 483 | } | 483 | } |
| 484 | 484 | ||
| @@ -493,7 +493,7 @@ static int udpv6_rcv(struct sk_buff **pskb, unsigned int *nhoffp) | |||
| 493 | if (skb->ip_summed==CHECKSUM_HW) { | 493 | if (skb->ip_summed==CHECKSUM_HW) { |
| 494 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 494 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
| 495 | if (csum_ipv6_magic(saddr, daddr, ulen, IPPROTO_UDP, skb->csum)) { | 495 | if (csum_ipv6_magic(saddr, daddr, ulen, IPPROTO_UDP, skb->csum)) { |
| 496 | LIMIT_NETDEBUG(printk(KERN_DEBUG "udp v6 hw csum failure.\n")); | 496 | LIMIT_NETDEBUG(KERN_DEBUG "udp v6 hw csum failure.\n"); |
| 497 | skb->ip_summed = CHECKSUM_NONE; | 497 | skb->ip_summed = CHECKSUM_NONE; |
| 498 | } | 498 | } |
| 499 | } | 499 | } |
| @@ -825,7 +825,7 @@ back_from_confirm: | |||
| 825 | /* ... which is an evident application bug. --ANK */ | 825 | /* ... which is an evident application bug. --ANK */ |
| 826 | release_sock(sk); | 826 | release_sock(sk); |
| 827 | 827 | ||
| 828 | LIMIT_NETDEBUG(printk(KERN_DEBUG "udp cork app bug 2\n")); | 828 | LIMIT_NETDEBUG(KERN_DEBUG "udp cork app bug 2\n"); |
| 829 | err = -EINVAL; | 829 | err = -EINVAL; |
| 830 | goto out; | 830 | goto out; |
| 831 | } | 831 | } |
| @@ -1054,8 +1054,6 @@ struct proto udpv6_prot = { | |||
| 1054 | .obj_size = sizeof(struct udp6_sock), | 1054 | .obj_size = sizeof(struct udp6_sock), |
| 1055 | }; | 1055 | }; |
| 1056 | 1056 | ||
| 1057 | extern struct proto_ops inet6_dgram_ops; | ||
| 1058 | |||
| 1059 | static struct inet_protosw udpv6_protosw = { | 1057 | static struct inet_protosw udpv6_protosw = { |
| 1060 | .type = SOCK_DGRAM, | 1058 | .type = SOCK_DGRAM, |
| 1061 | .protocol = IPPROTO_UDP, | 1059 | .protocol = IPPROTO_UDP, |
