ICMP redirects never followed in 2.0.30?

Ivan Nejgebauer (ian@uns.ns.ac.yu)
21 Aug 1997 04:06:10 -0000


It seems that plain 2.0.30 will never accept an ICMP redirect. This
is from net/ipv4/icmp.c, function icmp_redirect():

#if !defined(CONFIG_IP_DUMB_ROUTER)
if (sysctl_ip_forward) {
NETDEBUG(printk(KERN_INFO "icmp: ICMP redirect ignored. dest = %lX, "
"orig gw = %lX, \"new\" gw = %lX, device = %s.\n", ntohl(ip),
ntohl(source), ntohl(icmph->un.gateway), dev->name));
}
#else
/* redirect handling code */

CONFIG_IP_DUMB_ROUTER doesn't appear anywhere else in the kernel tree,
so the net effect is that redirects are ignored if IP forwarding is
disabled, BUT nothing happens if it's enabled. Is this fixed in
pre-2.0.31-x?