aboutsummaryrefslogtreecommitdiff
path: root/pcap
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-10-20 00:55:00 -0700
committerGuy Harris <gharris@sonic.net>2021-10-20 00:55:00 -0700
commit95ab535a720079c92295213981e5495d8865d981 (patch)
treeb3c271aac88b5829df98d5721547572e05de6e18 /pcap
parente9eaad85f3888c72f79de705fae7e0768d8a622d (diff)
Revert "linux: clean up the SocketCAN header for classic CAN frames."
This reverts commit e9eaad85f3888c72f79de705fae7e0768d8a622d. We only need to do this for CAN FD frames; readers of the frames can use thse heuristics to determine whether to trust the len8_dlc field without our help.
Diffstat (limited to 'pcap')
-rw-r--r--pcap/can_socketcan.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap/can_socketcan.h b/pcap/can_socketcan.h
index dfe58591..0cb3584a 100644
--- a/pcap/can_socketcan.h
+++ b/pcap/can_socketcan.h
@@ -48,9 +48,9 @@
typedef struct {
uint32_t can_id;
uint8_t payload_length;
- uint8_t fd_flags; /* not used for classic CAN; flags for CAN FD */
- uint8_t len8_dlc; /* Data Length Code for classic CAN; not used for CAN FD */
- uint8_t reserved;
+ uint8_t fd_flags;
+ uint8_t reserved1;
+ uint8_t reserved2;
} pcap_can_socketcan_hdr;
/* Bits in the fd_flags field */