Date: Tue, 26 Sep 2000 01:00:03 -0700 (PDT) From: Ruslan Ermilov <ru@sunbay.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/21546: netstat -rn output needs netmask info added Message-ID: <200009260800.BAA25202@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21546; it has been noted by GNATS. From: Ruslan Ermilov <ru@sunbay.com> To: frank@google.com Cc: bug-followup@FreeBSD.org Subject: Re: bin/21546: netstat -rn output needs netmask info added Date: Tue, 26 Sep 2000 10:51:34 +0300 On Mon, Sep 25, 2000 at 05:06:45PM -0700, frank@google.com wrote: > > If I have fxp0 as 192.168.0.x/24, netstat -rn -f inet shows this route as > > 192.168 link#1 ... > > which makes you think it is a /16. > No, it does not, because I know that the standard netmask for class C network is /24. In other words, netstat(1) does not output the netmask for a network route unless it is different from the default netmask for this network's class, IN_CLASS[ABC]_NET (see /usr/include/netinet/in.h). -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009260800.BAA25202>