tcpdump mailing list archives
Re: [PATCH] SocketCAN support for libpcap - draft implementation
From: "Gianluca Varenni" <gianluca.varenni () cacetech com>
Date: Mon, 5 Oct 2009 11:28:56 -0700
Presumably aligned(8) means "align on an 8-byte boundary"; if canid_t is a 32-bit quantity, then there should be 3 bytes of padding on *all* platforms.However, if you're using DLT_CAN20B, what matters here is what *existing* software that uses DLT_CAN20B expects; you would have to arrange to make the frame look like that, regardless of whether it matches "struct can_frame" or not, or you would have to request a different DLT_ value, e.g. DLT_CAN20B_LINUX or DLT_CAN20B_SOCKETCAN or something such as that.Gianluca, what does the header look like in a DLT_CAN20B packet?
The spec is here http://www.winpcap.org/gianluca/can.html Have a nice day GV - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [PATCH] SocketCAN support for libpcap - draft implementation Felix Obenhuber (Oct 03)
- <Possible follow-ups>
- [PATCH] SocketCAN support for libpcap - draft implementation Felix Obenhuber (Oct 03)
- [PATCH] SocketCAN support for libpcap - draft implementation Felix Obenhuber (Oct 04)
- Re: [PATCH] SocketCAN support for libpcap - draft implementation Guy Harris (Oct 04)
- Re: [PATCH] SocketCAN support for libpcap - Felix Obenhuber (Oct 05)
- Re: [PATCH] SocketCAN support for libpcap - Gianluca Varenni (Oct 05)
- Re: [PATCH] SocketCAN support for libpcap - Michael Richardson (Oct 05)
- 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 Guy Harris (Oct 04)
- 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 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)