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: