From owner-freebsd-current Wed Nov 15 05:05:21 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id FAA26441 for current-outgoing; Wed, 15 Nov 1995 05:05:21 -0800 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id FAA26436 for ; Wed, 15 Nov 1995 05:05:16 -0800 Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id FAA16506 for ; Wed, 15 Nov 1995 05:05:12 -0800 Received: from post.demon.co.uk by relay-4.mail.demon.net id msg.aa12392; 15 Nov 95 13:00 GMT Received: from linus.demon.co.uk by relay-3.mail.demon.net id msg.aa12390; 15 Nov 95 12:59 GMT Received: (from mark@localhost) by linus.demon.co.uk (8.7.1/8.7.1) id MAA01654; Wed, 15 Nov 1995 12:56:15 GMT Date: Wed, 15 Nov 1995 12:56:15 GMT From: Mark Valentine Message-Id: <199511151256.MAA01654@linus.demon.co.uk> In-Reply-To: Peter Wemm's message of Nov 15, 1:57pm X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: Peter Wemm , current@freebsd.org Subject: Re: netstat has been broken for a long time.. Sender: owner-current@freebsd.org Precedence: bulk > From: Peter Wemm > Date: Wed 15 Nov, 1995 > Subject: netstat has been broken for a long time.. > To my (not so) great suprise, I discovered netstat was accidently > broken... it's nlist()ing the kernel looking for "_unixsw" which was > replaced with "_localsw" and netstat not updated. You mean I've been typing "netstat -f inet" unnecessarily all this time? :-( > ....However.... Perhaps it would be an acceptable compromise to fix > inetd so that it does not display AF_UNIX sockets unless specifically > requested with "netstat -f unix". Best of both worlds? Why pick on "unix"? No -f options means "all protocols". If you did restrict the default display to an arbitrary subset, you'd have to invent a way of specifying "all protocols" again without enumerating them. Annoying though it may be, I think the current behaviour (when fixed) is most flexible; invent an alias for ``netstat -f inet'' if you really it: inetstat() { netstat -f inet ${1+"$@"}; } Mark. -- "Tigers will do ANYTHING for a tuna fish sandwich." "We're kind of stupid that way." *munch* *munch*