patch-2.4.22 linux-2.4.22/net/ipv4/icmp.c

Next file: linux-2.4.22/net/ipv4/igmp.c
Previous file: linux-2.4.22/net/ipv4/fib_semantics.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/ipv4/icmp.c linux-2.4.22/net/ipv4/icmp.c
@@ -595,8 +595,11 @@
 		if (inet_addr_type(iph->daddr) == RTN_BROADCAST)
 		{
 			if (net_ratelimit())
-				printk(KERN_WARNING "%u.%u.%u.%u sent an invalid ICMP error to a broadcast.\n",
-			       	NIPQUAD(skb->nh.iph->saddr));
+				printk(KERN_WARNING "%u.%u.%u.%u sent an invalid ICMP type %u, code %u error to a broadcast: %u.%u.%u.%u on %s\n",
+					NIPQUAD(iph->saddr),
+					icmph->type, icmph->code,
+					NIPQUAD(iph->daddr),
+					skb->dev->name);
 			goto out;
 		}
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)