tcpdump mailing list archives

[PATCH] enforce host byte order on usb header


From: "Abeni Paolo" <paolo.abeni () telecomitalia it>
Date: Thu, 18 Jan 2007 17:16:48 +0100

hello,

The attached patch implements the longly discussed fix in sv_next_packet().
If the data link is DLT_USB_LINUX is enforced host byte order on all usb header fields effectively present into the 
packet.
To avoid some duplication, I moved the SWAP_TS() marco into the pcap-int.h header (and reanamed it as SWAPLL()), since 
it is required by both savefile.c and pcap-dag.c.

The code itself is quite trivial, but please review it, since is not easy for me to perform any real test (I have 
access only to x86 hosts).

ciao,

Paolo



--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If 
you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it 
immediately to the sender and delete the message. Should you have any questions, please contact us by replying to 
webmaster () telecomitalia it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------
                        

Attachment: usb_header_swap_order.patch
Description: usb_header_swap_order.patch

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

Current thread: