summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_checksum.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2014-02-26 00:11:02 +0400
committerDavid S. Miller <davem@davemloft.net>2014-02-27 00:46:25 +0400
commit84a3e72c3a5c2441be46c4afba95fe5af3c370e7 (patch)
treea97cd55eaa02bdbb354f75d3060c4861900098b1 /net/ipv6/ip6_checksum.c
parent86c3f0f8307ac18f3ad3109e1969c62b8fbed5df (diff)
downloadlinux-84a3e72c3a5c2441be46c4afba95fe5af3c370e7.tar.xz
ipv6: log src and dst along with "udp checksum is 0"
These info messages are rather pointless without any means to identify the source of the bogus packets. Logging the src and dst addresses and ports may help a bit. Cc: Joe Perches <joe@perches.com> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_checksum.c')
-rw-r--r--net/ipv6/ip6_checksum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/ip6_checksum.c b/net/ipv6/ip6_checksum.c
index 72d198b8e4d2..ee7a97f510cb 100644
--- a/net/ipv6/ip6_checksum.c
+++ b/net/ipv6/ip6_checksum.c
@@ -79,7 +79,9 @@ int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto)
/* RFC 2460 section 8.1 says that we SHOULD log
this error. Well, it is reasonable.
*/
- LIMIT_NETDEBUG(KERN_INFO "IPv6: udp checksum is 0\n");
+ LIMIT_NETDEBUG(KERN_INFO "IPv6: udp checksum is 0 for [%pI6c]:%u->[%pI6c]:%u\n",
+ &ipv6_hdr(skb)->saddr, ntohs(uh->source),
+ &ipv6_hdr(skb)->daddr, ntohs(uh->dest));
return 1;
}
if (skb->ip_summed == CHECKSUM_COMPLETE &&