Wireshark mailing list archives
Re: saving data in pcap file format
From: Guy Harris <guy () alum mit edu>
Date: Mon, 11 Oct 2010 09:56:00 -0700
On Oct 11, 2010, at 9:47 AM, Guy Harris wrote:
That does, of course, require that the "raw packet data" be in the right format for DLT_USB_LINUX or DLT_USB_LINUX_MMAPPED. I'll discuss that issue in another message.
That format is the format you get from the Linux usbmon module's binary mode. For DLT_USB_LINUX, in libpcap 1.0.0 and later, there's a <pcap/usb.h> header, which defines a "pcap_usb_header" structure. The "raw packet data" begins with a pcap_usb_header structure, with all multi-byte integral quantities in *host* byte order, followed by the data transferred, if any. For DLT_USB_LINUX_MMAPPED, in libpcap 1.1.0 and later, that header also defines a "pcap_usb_header_mmapped" header structure. The "raw packet data" begins with a pcap_usb_header_mmapped, again with all multi-byte integral quantities in *host* byte order, followed by the data transferred, if any. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- saving data in pcap file format Lange Jan-Erik (Oct 11)
- Re: saving data in pcap file format Gregory Seidman (Oct 11)
- Re: saving data in pcap file format Lange Jan-Erik (Oct 11)
- Re: saving data in pcap file format Andy Lawman (Oct 11)
- Re: saving data in pcap file format Guy Harris (Oct 11)
- Re: saving data in pcap file format Guy Harris (Oct 11)
- Re: saving data in pcap file format Lange Jan-Erik (Oct 11)
- Re: saving data in pcap file format Gregory Seidman (Oct 11)
- Re: saving data in pcap file format Jeff Morriss (Oct 11)
- Re: saving data in pcap file format Chris Maynard (Oct 11)
- Re: saving data in pcap file format Lange Jan-Erik (Oct 11)
- Re: saving data in pcap file format Lange Jan-Erik (Oct 11)
- Re: saving data in pcap file format Chris Maynard (Oct 11)
- Re: saving data in pcap file format Lange Jan-Erik (Oct 11)