tcpdump mailing list archives

[PATCH] use new binary api for usb sniffig.


From: Paolo Abeni <paolo.abeni () email it>
Date: Fri, 08 Dec 2006 17:23:49 +0100

hello,

The attached patch updates the sub-sniffing code to use the new binary
interface offered by the Linux kernel to sniff from sub buses.

The old code using the text interface is retained and used when the
binary interface is not available.

To access the binary api, some device files have to be accessed. In the
patch the path for this devices is hard-coded, but the effective
location may change depending on the linux distribution. Must I add some
autoconf test to check for some possible variations ?!?

The header present at the beginning of each 'packet', as suggested by
previous messages, is changed slightly and is now linux-specific, so
perhaps is necessary to allocate DLT. The code currently use the old
DLT_USB. 

ciao,

Paolo

Attachment: usb_bin_api.patch
Description:

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: