Date: Fri, 19 Apr 2019 17:59:11 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 237391] route get returns no result for network addresses (netmask portion of address is zero) Message-ID: <bug-237391-7501-827UQAs5fW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237391-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-237391-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237391 Rodney W. Grimes <rgrimes@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rgrimes@FreeBSD.org Flags|mfc-stable11?, |mfc-stable11+, |mfc-stable12? |mfc-stable12+ --- Comment #2 from Rodney W. Grimes <rgrimes@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 ex= pire 0 0 0 0 0 0 1500 = 0=20 I suspect this is miss application of IN_CLASS{ABCD} macros in trying to pi= ck 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. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237391-7501-827UQAs5fW>