tcpdump mailing list archives

Re: [BUG] pcap-usb-linux.c


From: Guy Harris <guy () alum mit edu>
Date: Tue, 23 Dec 2008 13:40:08 -0800


On Dec 23, 2008, at 12:39 PM, Guy Harris wrote:


On Nov 27, 2008, at 3:49 AM, Jean-Louis wrote:

this means request a new DLT_ value like i.e. DLT_USB_LINUX_MMAPPED,

Yes.  I've added DLT_USB_LINUX_MMAP.

I've renamed it to DLT_USB_LINUX_MMAPPED in the main and 1.0 branches.

add
a new struct in libpcap/pcap/usb.h similar to pcap_usb_header with last
field for padding i.e.

typedef struct _usb_header_mmapped {
...
...
u_int8_t padding[16];
} pcap_usb_header_mmapped;

That could be done, but, instead, I just added a #define MMAPPED_USB_HEADER_SIZE which is the size of the padded header.

I put in that structure in the main and 1.0 branches.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: