Messages in this thread Patch in this message |  | | Date | Sun, 9 Feb 2003 03:10:54 -0800 | From | Andrew Morton <> | Subject | Re: routing oddity in 2.5.59-mm8 |
| |
Florian Schmitt <florian@galois.de> wrote: > > in 2.5.59-mm8 the routing table behaves a bit strange:
me too:
vmm:/home/akpm# ip route show 192.168.2.0/24 dev eth0 scope link 127.0.0.0/8 dev lo scope link default via 192.168.2.1 dev eth0 vmm:/home/akpm# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo vmm:/home/akpm# route del default vmm:/home/akpm# route del default SIOCDELRT: No such process
So `ip' can see the default route, but `route' cannot.
Reverting the spurious semicolon fix fixes it up.
diff -puN net/ipv4/fib_hash.c~a net/ipv4/fib_hash.c --- 25/net/ipv4/fib_hash.c~a 2003-02-09 03:04:29.000000000 -0800 +++ 25-akpm/net/ipv4/fib_hash.c 2003-02-09 03:04:32.000000000 -0800 @@ -941,7 +941,7 @@ static __inline__ struct fib_node *fib_g if (!iter->zone) goto out; - if (iter->zone->fz_next) + if (iter->zone->fz_next); break; } _
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |