From owner-freebsd-arch Tue Dec 14 17:40:29 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 194B215104 for ; Tue, 14 Dec 1999 17:40:27 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id CAA14845 for ; Wed, 15 Dec 1999 02:40:25 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id CAA67422 for freebsd-arch@freebsd.org; Wed, 15 Dec 1999 02:40:25 +0100 (MET) Received: from awfulhak.org (dynamic-12.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.140]) by hub.freebsd.org (Postfix) with ESMTP id B81C014FAF for ; Tue, 14 Dec 1999 17:40:14 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA47374; Wed, 15 Dec 1999 01:34:58 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA01143; Wed, 15 Dec 1999 01:36:43 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199912150136.BAA01143@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Jonathan Lemon Cc: Brian Somers , arch@freebsd.org, brian@hak.lan.Awfulhak.org Subject: Re: The if_detach problem In-Reply-To: Message from Jonathan Lemon of "Tue, 14 Dec 1999 17:39:36 CST." <19991214173936.37821@right.PCS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Dec 1999 01:36:43 +0000 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [.....] > > Another (more real?) argument for keeping the interface but making it > > unusable 'till the driver wants it again is that there may be > > security concerns.... at the moment, ``netstat -i'' reports what's > > been going on very nicely. Removing the interface entirely will > > allow people to hide what should not be hidden.... > > I'm not sure this applies. At the moment, `netstat -i' does not > show interfaces which have no driver in the system. So if I load > and then _unload_ a driver, what should 'netstat -i' report? The > name of the (nonexistent) driver? Similarly, if the hardware > happens to be a PCCARD, and it's popped out, its gone, and there > isn't any point in keeping the iface around forever. Yes, maybe a if_detach() based netstat -i style line would be more appropriate ? Hmm, it'd be nice to have netstat -i report per-IP stats too rather than reporting each alias address as having the same (per-interface) statistics. I'll stick it in my mental-todo-list :-I Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll de0 1500 00.00.c0.ff.e9.ce 859160 0 541128 0 507 de0 1500 172.16/24 172.16.0.1 859160 0 541128 0 507 lp0* 1500 0 0 0 0 0 sl0* 552 0 0 0 0 0 sl1* 552 0 0 0 0 0 ppp0* 1500 0 0 0 0 0 ppp1* 1500 0 0 0 0 0 lo0 16384 957056 0 957056 0 0 lo0 16384 127 127.0.0.1 957056 0 957056 0 0 lo0 16384 195.166.136.6 195.166.136.63 957056 0 957056 0 0 tun0 1500 11556 0 17744 0 0 tun0 1500 172.16 172.16.0.1 11556 0 17744 0 0 tun0 1500 212.74.9.182/ 212.74.9.182 11556 0 17744 0 0 tun0 1500 212.74.9.153/ 212.74.9.153 11556 0 17744 0 0 tun0 1500 212.74.9.214/ 212.74.9.214 11556 0 17744 0 0 tun0 1500 212.74.9.244/ 212.74.9.244 11556 0 17744 0 0 tun0 1500 212.74.9.132/ 212.74.9.132 11556 0 17744 0 0 tun0 1500 212.74.9.163/ 212.74.9.163 11556 0 17744 0 0 tun0 1500 212.74.9.155/ 212.74.9.155 11556 0 17744 0 0 tun0 1500 212.74.9.235/ 212.74.9.235 11556 0 17744 0 0 tun0 1500 212.74.9.152/ 212.74.9.152 11556 0 17744 0 0 tun0 1500 212.74.9 212.74.9.221 11556 0 17744 0 0 > -- > Jonathan -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message