[lkml]   [2003]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCHLET] 2.5.70 invalid icmp broadcast.

I noticed this a couple of weeks ago in the kernel log: sent an invalid to a broadcast.

I decided to make the kernel be more verbose about it. Here is a patch
that would show: sent an invalid ICMP type 11, code 0 error to a broadcast: on eth1

Please apply.


diff -Nru linux-2.5.68.bak/net/ipv4/icmp.c linux-2.5.70/net/ipv4/icmp.c
--- linux-2.5.68.bak/net/ipv4/icmp.c 2003-05-17 14:56:11.000000000 +0200
+++ linux-2.5.70/net/ipv4/icmp.c 2003-06-09 13:21:37.000000000 +0200
@@ -663,8 +659,12 @@
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));
+ "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;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:36    [W:0.023 / U:6.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site