]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/can_socketcan.h
Use C99 {u}intN_t types rather than BSD {u_}intN_t types.
[libpcap] / pcap / can_socketcan.h
index 68d2a131c8ae211999701d32399def405af3cb3e..332d9ff5d5a911a72a53f0349ed5e19957724cbb 100644 (file)
 #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