Re: pre-2.0.31-3: "ICMP redirect" messages from net/ipv4/icmp.c

Dr. Werner Fink (werner@suse.de)
Wed, 6 Aug 1997 13:53:07 +0200


> With pre-2.0.31-3, I'm experiencing a problem I haven't had since 22 May:
> while using dialout PPP, the connection will occasionally stop passing
> packets, and the syslog gets spammed with these messages:

Does the appended patch help?

Werner

--------------------------------------------------------------------------
diff -urN linux-2.0.31-linus/net/ipv4/icmp.c linux/net/ipv4/icmp.c
--- linux-2.0.31-linus/net/ipv4/icmp.c Tue Aug 5 11:59:27 1997
+++ linux/net/ipv4/icmp.c Wed Aug 6 13:47:48 1997
@@ -833,7 +833,7 @@
ntohl(source), ntohl(icmph->un.gateway), dev->name));
goto flush_it;
}
-#endif
+#else
switch(icmph->code & 7)
{
case ICMP_REDIR_NET:
@@ -871,7 +871,7 @@
default:
break;
}
-
+#endif
/*
* Discard the original packet
*/