Add a preference to byte-swap the CAN ID field.
authorGuy Harris <guy@alum.mit.edu>
Fri, 19 Aug 2016 23:18:43 +0000 (16:18 -0700)
committerGuy Harris <guy@alum.mit.edu>
Fri, 19 Aug 2016 23:19:15 +0000 (23:19 +0000)
commitc06da45f3cea0263cfe2a02ee4294b754e5657df
tree42acbdb4d40e3ceabfdc95bd04a6ee8ff8e42210
parent22a4f8e43ff2e5f6bbd4dfec68db67939746a6df
Add a preference to byte-swap the CAN ID field.

This can be useful when dealing with 1) captures from versions of
libpcap without the bug fix to use DLT_CAN_SOCKETCAN_HOSTENDIAN when
appropriate and 2) DLT_CAN_SOCKETCAN_HOSTENDIAN captures if processed by
a machine with a different byte order from the capturing machine with
software that doesn't properly put the field into host byte order when
reading and writing.

Change-Id: Ia206e5c51aecccf2508cca01cff65a4feb379ac8
Reviewed-on: https://code.wireshark.org/review/17187
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/dissectors/packet-socketcan.c