patch-2.1.44 linux/net/ipv6/icmp.c

Next file: linux/net/ipv6/tcp_ipv6.c
Previous file: linux/net/ipv4/utils.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/net/ipv6/icmp.c linux/net/ipv6/icmp.c
@@ -5,7 +5,7 @@
  *	Authors:
  *	Pedro Roque		<roque@di.fc.ul.pt>
  *
- *	$Id: icmp.c,v 1.9 1997/04/29 09:38:42 mj Exp $
+ *	$Id: icmp.c,v 1.10 1997/06/05 11:07:20 schenk Exp $
  *
  *	Based on net/ipv4/icmp.c
  *
@@ -405,7 +405,23 @@
 	case CHECKSUM_HW:
 		if (csum_ipv6_magic(saddr, daddr, len, IPPROTO_ICMPV6, 
 				    skb->csum)) {
-			printk(KERN_DEBUG "icmpv6 checksum failed\n");
+			printk(KERN_DEBUG "ICMPv6 checksum failed [%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x > %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x]\n",
+				ntohs(saddr->in6_u.u6_addr16[0]),
+				ntohs(saddr->in6_u.u6_addr16[1]),
+				ntohs(saddr->in6_u.u6_addr16[2]),
+				ntohs(saddr->in6_u.u6_addr16[3]),
+				ntohs(saddr->in6_u.u6_addr16[4]),
+				ntohs(saddr->in6_u.u6_addr16[5]),
+				ntohs(saddr->in6_u.u6_addr16[6]),
+				ntohs(saddr->in6_u.u6_addr16[7]),
+				ntohs(daddr->in6_u.u6_addr16[0]),
+				ntohs(daddr->in6_u.u6_addr16[1]),
+				ntohs(daddr->in6_u.u6_addr16[2]),
+				ntohs(daddr->in6_u.u6_addr16[3]),
+				ntohs(daddr->in6_u.u6_addr16[4]),
+				ntohs(daddr->in6_u.u6_addr16[5]),
+				ntohs(daddr->in6_u.u6_addr16[6]),
+				ntohs(daddr->in6_u.u6_addr16[7]));
 			goto discard_it;
 		}
 	default:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov