2.5.70 invalid icmp broadcast.

2.5.70 invalid icmp broadcast.

Post by Maciej Soltysia » Wed, 11 Jun 2003 16:00:23


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

            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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


1. [2.5.70][ANNOUNCE] kexec for 2.5.70 available

A patch set for kexec for 2.5.70 is now available. This patch set is
based upon the stable 2.5.{67,68,69} versions of kexec. The most recent
set of kexec patches do not yet patch cleanly into 2.5.70.

This patch was tested to work on a dual-proc P4-1.7GHz Xeon system. The
only known strangeness I have observed (YMMV) is that the VESA
framebuffer driver did not reinitialize correctly after kexec-ing a new
kernel, but the system rebooted correctly.

The stable patches for 2.5.70 are available for download from OSDL's
patch life-cycle manager (PLM ) in pieces, or as a single unified patch.

More info here:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Does anyone know how to clear the options F1...Win98 F2...FreeBSD F3...?? upon boot up?

3. 2.5.70 and 2.5.70-mm3 hang on bootup

4. Newbie problems with procmail and RH 6.0

5. ALSA Segmentation fault load modules 2.5.70 and 2.5.70mm1

6. What does /bin/login do to initialize the pty in HP-UX?

7. 2.5.70-mm3 with contest

8. sunsite & xmftp problems

9. 2.4.18, 2.4.21-rc3/6, 2.5.70-mm1 Interactivity test + script

10. software suspend in 2.5.70-mm3.

11. [2.5.70] ALSA help text correction

12. glibc compiling with kernel 2.5.70-bk17

13. 2.5.70-bk12 Oops at boot