From owner-freebsd-current@FreeBSD.ORG Wed Oct 26 18:58:46 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18840106564A for ; Wed, 26 Oct 2011 18:58:46 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 842C98FC14 for ; Wed, 26 Oct 2011 18:58:45 +0000 (UTC) Received: (qmail invoked by alias); 26 Oct 2011 18:32:03 -0000 Received: from 85-127-76-245.dynamic.xdsl-line.inode.at (EHLO walrus.pepperland) [85.127.76.245] by mail.gmx.net (mp026) with SMTP; 26 Oct 2011 20:32:03 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX19u0zEMnu5ueylgWTthMESc13xaBQPin5JEzaoMYu Ukhix/8haOSx2S From: Stefan Ehmann To: freebsd-current@freebsd.org Date: Wed, 26 Oct 2011 20:32:02 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC1; KDE/4.7.2; i386; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201110262032.02894.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Subject: usbus seen as network devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 18:58:46 -0000 I've noticed that with 9.0-RC1, usbus[0-9] are seen as network interfaces. I figured this is need for usbdump to work. (This isuue has been raised before [1], but no helpful replies were given). I find this behavior rather annoying: 1) usbus0 is the default interface (in 8.2, my primary network interface was default) # tcpdump tcpdump: WARNING: usbus0: That device doesn't support promiscuous mode (BIOCPROMISC: Operation not supported) tcpdump: WARNING: usbus0: no IPv4 address assigned tcpdump: packet printing is not supported for link type USB: use -w 2) Various tools (netstat, tcpdump, wireshark, my network monotoring dockapp) now list 8 additional interfaces: # netstat -i Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll usbus 0 0 0 0 0 0 0 usbus 0 0 0 0 0 0 0 ... 3) I can do rather silly things, that at best will do nothing: # ifconfig usbus0 10.0.0.1 # usbdump -i lo0 Some applications seem to check the link type, so that unsupported interfaces are not shown. But the behavior isn't even consistent in the base system: - ifconfig -a doesn't show usbus interfaces, but lets you happily configure them - tcpdump -D shows the interfaces, but bails out if you actually start capturing - netstat shows them - systat -ifstat only lists real interfaces Do all these applications need to be patched, or can this be fixed in a single place (in the kernel)? Is there a kernel option/sysctl/etc. to disable this behavior? I'm most likely not going to need usbdump in the foreseeable future. [1] http://lists.freebsd.org/pipermail/freebsd-stable/2011- September/063941.html -- Stefan