tcpdump mailing list archives
Re: [PATCH] SocketCAN support for libpcap - draft
From: Guy Harris <guy () alum mit edu>
Date: Mon, 7 Dec 2009 11:38:46 -0800
On Oct 25, 2009, at 2:55 AM, Felix Obenhuber wrote:
On Sun, 2009-10-11 at 19:42 -0400, Alexander Dupuy wrote:In the specific case of the SocketCAN, the fields in question appear to be transmitted on the wire (otherwise there would have been no need for an optional extension to the ID field - the size could just unilaterallyhave changed); given this fact, and the likelihood that the CAN20B linktype uses big-endian ordering for these fields (this is theimpression I get from the format diagram that Gianluca posted, althoughI have no other evidence), I think it would probably be the more consistent implementation choice to use big-endian order for these fields in the SocketCAN linktype format.Sorry for the late reply. I think that preserving the byte order makes sense in order to lean against the behavior of the native netdev interface. This is also the way libpcap does with ETH_P_ALL devices. Is this correct?
What does "preserving the byte order" mean here? Putting the fields into a standard byte order at capture time, or putting them into the host byte order when reading the file (i.e., byte-swapping them if you're reading the file on a host with a byte order different from the byte order of the host on which the file was written)?
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: [PATCH] SocketCAN support for libpcap -, (continued)
- Re: [PATCH] SocketCAN support for libpcap - Felix Obenhuber (Oct 06)
- Re: [PATCH] SocketCAN support for libpcap - Michael Richardson (Oct 06)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Gianluca Varenni (Oct 05)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Gianluca Varenni (Oct 05)
- Re: [PATCH] SocketCAN support for libpcap - Felix Obenhuber (Oct 11)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Alexander Dupuy (Oct 09)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Felix Obenhuber (Oct 11)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Guy Harris (Oct 11)
- Re: [PATCH] SocketCAN support for libpcap - draft Alexander Dupuy (Oct 11)
- Re: [PATCH] SocketCAN support for libpcap - draft Felix Obenhuber (Oct 25)
- Re: [PATCH] SocketCAN support for libpcap - draft Guy Harris (Dec 07)
- Re: [PATCH] SocketCAN support for libpcap - draft Felix Obenhuber (Dec 07)
- Re: [PATCH] SocketCAN support for libpcap - draft Guy Harris (Dec 07)
- Re: [PATCH] SocketCAN support for libpcap - draft Felix Obenhuber (Dec 08)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Felix Obenhuber (Oct 11)
- Re: [PATCH] SocketCAN support for libpcap - Felix Obenhuber (Oct 12)