From owner-svn-src-all@FreeBSD.ORG Wed Dec 1 23:58:28 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 74FFE1065675; Wed, 1 Dec 2010 23:58:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: src-committers@FreeBSD.org Date: Wed, 1 Dec 2010 18:58:18 -0500 User-Agent: KMail/1.6.2 References: <201012010351.oB13p6du062509@svn.freebsd.org> In-Reply-To: <201012010351.oB13p6du062509@svn.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012011858.19748.jkim@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Weongyo Jeong Subject: Re: svn commit: r216091 - head/sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 23:58:28 -0000 On Tuesday 30 November 2010 10:51 pm, Weongyo Jeong wrote: > Author: weongyo > Date: Wed Dec 1 03:51:06 2010 > New Revision: 216091 > URL: http://svn.freebsd.org/changeset/base/216091 > > Log: > Explicitly UP and DOWN the usbus interfaces (IFT_USB) when it's > attached or detached. Normally it should be changed through user > land ioctl(2) system calls but it looks there's no apps for USB and > no need. > > With this patch, libpcap would detect the usbus interfaces > correctly and tcpdump(1) could dump the USB packets into PCAP > format with -w option. However it couldn't print the output to > console because there's no printer-routine at tcpdump(1). I have written a very hackish USB packet printer for tcpdump based on Linux version. http://people.freebsd.org/~jkim/tcpdump-usb.diff Note we can only print headers as Linux version does. Are you planning on adopting DLT_USB_LINUX or DLT_USB_LINUX_MMAPPED or applying for our own DLT, BTW? Jung-uk Kim