[Bug 821077] New: route shows "default" for non-default route
https://bugzilla.novell.com/show_bug.cgi?id=821077 https://bugzilla.novell.com/show_bug.cgi?id=821077#c0 Summary: route shows "default" for non-default route Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: ms@suse.com ReportedBy: suse-beta@cboltz.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- My current routing setup looks like this: # route -n # shortened Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.8.0.9 128.0.0.0 UG 0 0 0 tun0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 10.8.0.9 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 128.0.0.0 10.8.0.9 128.0.0.0 UG 0 0 0 tun0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 # route # shortened Destination Gateway Genmask Flags Metric Ref Use Iface default 10.8.0.9 128.0.0.0 UG 0 0 0 tun0 default router 0.0.0.0 UG 0 0 0 wlan0 10.8.0.9 * 255.255.255.255 UH 0 0 0 tun0 128.0.0.0 10.8.0.9 128.0.0.0 UG 0 0 0 tun0 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0 Note that without -n, I get two "default" routes. If you look at the Genmask column, you'll see that only the second one is the real default route - the first one has a genmask of 128.0.0.0 and is only half of a default route ;-) route shouldn't print "default" in this case. BTW: It might look like a corner case, but this setup is what you get if your openvpn server uses push "redirect-gateway def1" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c3
--- Comment #3 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c4
Bernd Eckenfels
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c5
--- Comment #5 from Bernd Eckenfels
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c6
--- Comment #6 from Bernd Eckenfels
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c7
--- Comment #7 from Marius Tomaschewski
This is fixed here (you might need to pull other changes as well to apply that change):
https://github.com/ecki/net-tools/commit/c0d46405eb1d58bb5e2e2f5555a05fe10db...
Thank you very much!! (In reply to comment #5)
(this does not skip the lookup of networks [BTW in Comment #3], therefore if you have a broken /etc/networks entry it will (still) show a broken output for ipv4 - how would you fix it?)
I'd keep it as is. A broken /etc/networks entry is a broken entry, IMO no fix is needed. Except of it, /etc/networks assumes class networks, there is no length. The man page we have says: This file is read by the route(8) and netstat(8) utilities. Only Class A, B or C networks are supported, partitioned networks (i.e., network/26 or network/28) are not supported by this facility. 0.0.0.0 is a class A and partitioned networks (0.0.0.0/4) are not supported. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821077
https://bugzilla.novell.com/show_bug.cgi?id=821077#c8
--- Comment #8 from Marius Tomaschewski
the lib/inet6.c also does not observe the prefixlen, but it is not a problem for inet6 route as it uses the numeric flag (and no /etc/networks file).
Yes, this is fine, the truncation of ipv6 addresses in netstat -A inet6 -atun is a thorn in the eye (-T disables the truncation but breaks the columns). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com