First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

canfd in pcapng file

  • retag add tags

My name is Helmut and i have been dealing with the CAN protocol for some time now and am looking for information on how a CANFD message is structured in a pcapng file; who has information about this or can provide a corresponding trace file?

brazdhel's avatar
1
brazdhel
asked 2020-02-04 10:09:47 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Does this bug help? It has a capture file attached, which may prove useful. Or this bug perhaps. This bug has even more.

Jaap's avatar
13.7k
Jaap
answered 2020-02-04 11:13:04 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

To see how a pcapng file is structured, see the pcapng specification. Packets in a pcapng file are probably stored in Enhanced Protocol Blocks.

The link-layer type in the Interface Description Block in pcapng files for interfaces carrying CAN packets will probably be LINKTYPE_LINUX_SLL or LINKTYPE_LINUX_SLL2. The "ARPHRD_ type" field would, as per those pages, have the value 0x000C for CAN frames and 0x000D for CAN FD frames.

Guy Harris's avatar
19.9k
Guy Harris
answered 2020-02-04 17:27:07 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer