summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/libpcap/pcap/can_socketcan.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/contrib/libpcap/pcap/can_socketcan.h')
-rw-r--r--freebsd/contrib/libpcap/pcap/can_socketcan.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/freebsd/contrib/libpcap/pcap/can_socketcan.h b/freebsd/contrib/libpcap/pcap/can_socketcan.h
index 68d2a131..332d9ff5 100644
--- a/freebsd/contrib/libpcap/pcap/can_socketcan.h
+++ b/freebsd/contrib/libpcap/pcap/can_socketcan.h
@@ -39,16 +39,18 @@
#ifndef lib_pcap_can_socketcan_h
#define lib_pcap_can_socketcan_h
+#include <pcap/pcap-inttypes.h>
+
/*
* SocketCAN header, as per Documentation/networking/can.txt in the
* Linux source.
*/
typedef struct {
- u_int32_t can_id;
- u_int8_t payload_length;
- u_int8_t pad;
- u_int8_t reserved1;
- u_int8_t reserved2;
+ uint32_t can_id;
+ uint8_t payload_length;
+ uint8_t pad;
+ uint8_t reserved1;
+ uint8_t reserved2;
} pcap_can_socketcan_hdr;
#endif