* routing oddity in 2.5.59-mm8
@ 2003-02-09 10:53 Florian Schmitt
2003-02-09 11:10 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Florian Schmitt @ 2003-02-09 10:53 UTC (permalink / raw)
To: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
in 2.5.59-mm8 the routing table behaves a bit strange:
# > route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
rtsl-stgt-de01. * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
In 2.5.59-linus an additional default route is shown. If I try to add my
default route, I get:
# > route add -net 0.0.0.0 netmask 0.0.0.0 dev ppp0 gw 213.20.223.152
SIOCADDRT: File exists
# > route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
rtsl-stgt-de01. * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
Nothing has changed. The route seems to be there (but invisible), because I
can access other subnets through the gateway.
- --
Flo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: You may find my public key at http://www.galois.de/florian.schmitt.pubkey.asc
iD8DBQE+RjNLH7Gei80C0lQRAqWEAKC4az6znXaYRL04UMX1NkfPP/5UQwCgqvcW
QeDgvLbRwHvERLD78qoK8vA=
=JSv7
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: routing oddity in 2.5.59-mm8
2003-02-09 10:53 routing oddity in 2.5.59-mm8 Florian Schmitt
@ 2003-02-09 11:10 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2003-02-09 11:10 UTC (permalink / raw)
To: Florian Schmitt; +Cc: linux-kernel, David S. Miller
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;
}
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-09 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09 10:53 routing oddity in 2.5.59-mm8 Florian Schmitt
2003-02-09 11:10 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).