Wireshark-bugs: [Wireshark-bugs] [Bug 12687] New: SocketCAN dissector does not support CAN FD
Date: Fri, 29 Jul 2016 10:53:05 +0000
Bug ID 12687
Summary SocketCAN dissector does not support CAN FD
Product Wireshark
Version Git
Hardware All
OS Linux (other)
Status UNCONFIRMED
Severity Enhancement
Priority Low
Component Dissection engine (libwireshark)
Assignee bugzilla-admin@wireshark.org
Reporter socketcan@hartkopp.net

Created attachment 14776 [details]
CAN FD support in Linux presentation

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
Since Linux 3.6 the Linux Kernel supports CAN FD which is a further
development to CAN (see introduction slides attached).

In
http://can-newsletter.org/engineering/standardization/nr_stand_can-fd_linux3.6_120703
the CAN FD patchset is referenced too:

http://git.kernel.org/?p=linux/kernel/git/davem/net-next.git;a=shortlog;h=ea53fe0c667ad3cae61d4d71d2be41908ac5c0a4

where you can see in

http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=7c9416365c60f150ef8961a2855fafbc7394ad6b

that not only a new data structure canfd_frame was defined but a new
ETH_P_CANFD ethernet type next to ETH_P_CAN.

The SocketCAN dissector needs to catch the new ETH_P_CANFD skbs and should
display the new bits BRS and ESI additionally to the protocol CANFD in the
protocol field (instead of CAN).

As data source which can generate CAN and CAN FD content the cangen tool from
the CAN utils (apt-get install can-utils OR
https://github.com/linux-can/can-utils) can be used on a virtual CAN interface
(vcan) see
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L978

With 'cangen -m vcan0' all types of CAN and CAN FD frames are generated on the
virtual CAN vcan0 which can then be monitored by Wireshark.


You are receiving this mail because:
  • You are watching all bug changes.