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

Next file: linux/net/ipv4/ip_fw.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.85/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -495,7 +495,9 @@
 	/*
 	 *	We are a router. Routers should not respond to ICMP_REDIRECT messages.
 	 */
-	printk(KERN_INFO "icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
+	printk(KERN_INFO "icmp: ICMP redirect ignored. dest = %s, "
+	       "orig gw = %s, \"new\" gw = %s, device = %s.\n", in_ntoa(ip),
+		in_ntoa(source), in_ntoa(icmph->un.gateway), dev->name);
 #else	
 	switch(icmph->code & 7) 
 	{

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this