-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socketcan: put the first field of a CAN XL header in big-endian order.
Old CAN XL-unaware versions of libpcap did so, as they thought it was the CAN ID field. So that readers of LINKTYPE_CAN_SOCKETCAN files can handle those captures and fixed captures, we make that field big-endian. We continue to make the other two multi-byte fields of the CAN XL header little-endian, as those old versions of libpcap didn't change tham, and most if not all CAN XL captures were done on little-endian platforms. (cherry picked from commit eb6cfd8)
- Loading branch information
Showing
1 changed file
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters