From owner-freebsd-bugs Tue Sep 26 1: 0: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 94B2A37B42C for ; Tue, 26 Sep 2000 01:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA25202; Tue, 26 Sep 2000 01:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 26 Sep 2000 01:00:03 -0700 (PDT) Message-Id: <200009260800.BAA25202@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/21546: netstat -rn output needs netmask info added Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/21546; it has been noted by GNATS. From: Ruslan Ermilov 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