From owner-freebsd-bugs Mon Sep 25 17:10: 7 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 BF18737B43C for ; Mon, 25 Sep 2000 17:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA31233; Mon, 25 Sep 2000 17:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 51A6537B422; Mon, 25 Sep 2000 17:06:45 -0700 (PDT) Message-Id: <20000926000645.51A6537B422@hub.freebsd.org> Date: Mon, 25 Sep 2000 17:06:45 -0700 (PDT) From: frank@google.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/21546: netstat -rn output needs netmask info added Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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