Handle ETH_P_CANFD as well as ETH_P_CAN.
authorGuy Harris <guy@alum.mit.edu>
Thu, 25 Aug 2016 23:58:25 +0000 (16:58 -0700)
committerGuy Harris <guy@alum.mit.edu>
Thu, 25 Aug 2016 23:58:57 +0000 (23:58 +0000)
commit17f977ec5695259ec02c7e6e4cd24e3e2ed263c1
tree0d5d83cf1c69083d7fdc55b0932aebed5283d926
parent27372ca7379b3ff5cccf1488d96a72d06dfba0d1
Handle ETH_P_CANFD as well as ETH_P_CAN.

Both of them need to have the CAN ID/flags field of the header
byte-swapped as necessary to make sure it's in the *reading* host's byte
order, not the *writing* host's byte order, if the two are different.

Change-Id: Iac1589fdd9fe4d9ee6fbac8d821b48694d68919b
Reviewed-on: https://code.wireshark.org/review/17333
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/pcap-common.c