SocketCAN Support is broken in latest Wireshark-v4.3.0rc0-1430-g600de02805d0
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Guy,
Quoted 16 lines · Guy Harris
Quoted 1 line · Oliver Hartkopp
Excellent! That seems to be the right approach.
OK, so:
fix libpcap to put the priority/VCID field in big-endian order in CAN XL frames: https://github.com/the-tcpdump-group/libpcap/commit/eb6cfd8feae85b67529bb3c82f6a97bfd98c73f3 in the main branch https://github.com/the-tcpdump-group/libpcap/commit/23904ebe85c4556b77578fd8d61ef82d9bab62b4 in the 1.10 branch change Wireshark to treat that field as big-endian: https://gitlab.com/wireshark/wireshark/-/commit/38a29e82cc96f727aeab7f10e751fa6e8d5e45b6 in the main branch
Quoted 8 lines
https://gitlab.com/wireshark/wireshark/-/commit/b763663904b6101764c414056b9248803569d6d2 in the 4.2 branch update the LINKTYPE_CAN_SOCKETCAN spec to reflect all that: https://github.com/the-tcpdump-group/tcpdump-htdocs/commit/9c357d9ed6d214bd2fc44850138c2f8861782d88 and it'll show up on the site within 24 hours.
I can confirm that all type of CAN frames (CAN CC/FD/XL) are now displayed correctly with the latest Wireshark v4.3.0rc0-1528-g37937ef51444. As expected I just don't see the CAN FD flags due to my current (outdated) Debian libpcap 1.10.4.
Great job!!
Many thanks and best regards,
Oliver
Wireshark 4.2.3, which includes the SocketCAN changes, has just been released. Presumably, various packagers of Wireshark 4.2.x will pick it up at some point.
Quoted 1 line · Guy Harris
Wireshark 4.2.3, which includes the SocketCAN changes, has just been released. Presumably, various packagers of Wireshark 4.2.x will pick it up at some point.
Many thanks for the information and your support!
Marc created a pull-request for Linux mainline upstream (net-next) and the CAN XL VCID support will now show up in Linux 6.9:
Looking forward to see both improvements in the known distributions.
Best regards,
Oliver
Quoted 3 lines · Oliver Hartkopp
Marc created a pull-request for Linux mainline upstream (net-next) and the CAN XL VCID support will now show up in Linux 6.9:
How does one request that the VCID information be provided on a PF_PACKET socket (whether SOCK_RAW or SOCK_DGRAM)?
Quoted 6 lines · Guy Harris
Quoted 2 lines · Oliver Hartkopp
How does one request that the VCID information be provided on a
PF_PACKETsocket (whetherSOCK_RAWorSOCK_DGRAM)?
The VCID is now part of the content in the struct skbuff data. So it is available everywhere, where a formerly CAN ID was accessible. Also on PACKET sockets.
The VCID is no VLAN tag, nor uses it the VLAN specific skbuff elements in Linux.
While it would have been possible to get a VLAN tag via PACKET sockets auxiliary cmsg mechanic you would never have be able to "write" the VCID in this way as user space application - and especially not as unprivileged user. And this is a vital requirement for logging and replaying CAN (CC/FD/XL) traffic.
The question if we could invent some VLAN-like CAN interface (can0.123) is to be discussed. But there would be the need of a use-case of real CAN XL users. So far there is nothing to see.
As CAN XL has up to 2048 bytes of payload it is also possible to do IP-over-CANXL. IMHO it would make sense to create a software ethernet device (maybe with VLAN tag) that interacts with a CAN XL network interface. But this is future work, again when there will be a use-case.
Best regards,
Oliver