[Bug 237391] route get returns no result for network addresses (netmask portion of address is zero)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 19 17:59:15 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237391
Rodney W. Grimes <rgrimes at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rgrimes at FreeBSD.org
Flags|mfc-stable11?, |mfc-stable11+,
|mfc-stable12? |mfc-stable12+
--- Comment #2 from Rodney W. Grimes <rgrimes at FreeBSD.org> ---
Confirmed all the back to 5.4p8:
route -n get 10.0.0.0
route: writing to routing socket: No such process
pdx.rh.CN85.dnsmgr.net:root {650}# uname -a
FreeBSD pdx.rh.CN85.dnsmgr.net 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: Wed
Sep 21 16:17:14 PDT 2016
{651}# route -n get 10.0.0.1
route to: 10.0.0.1
destination: default
mask: default
gateway: 192.168.114.4
interface: lnc1
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
I suspect this is miss application of IN_CLASS{ABCD} macros in trying to pick a
default netmask for 10.0.0.0 and then not finding an exact route match for
10.0.0.0/8 and so assuming that there is not a broader route. Bug is most
likely purely in the route(8) binary.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the freebsd-net
mailing list