Date: Mon, 25 Sep 2000 17:06:45 -0700 (PDT) From: frank@google.com To: freebsd-gnats-submit@FreeBSD.org Subject: bin/21546: netstat -rn output needs netmask info added Message-ID: <20000926000645.51A6537B422@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 21546 >Category: bin >Synopsis: netstat -rn output needs netmask info added >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 25 17:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Frank Cusack >Release: 4.1-RELEASE >Organization: Google >Environment: i386 >Description: 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. >How-To-Repeat: `ifconfig fxp0 192.168.0.1 netmask 255.255.255.0; netstat -rn -f inet' >Fix: netstat needs to report netmasks explicitly, and expand the destination IP to at least the prefix length (if not all 4 octets). eg: 192.168.0/24 link#1 ... or 192.168.0.0/24 link#1 ... >Release-Note: >Audit-Trail: >Unformatted: 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?20000926000645.51A6537B422>