]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/bluetooth.h
Update config.{guess,sub}, timestamps 2023-01-01,2023-01-21
[libpcap] / pcap / bluetooth.h
index 01bd5a2e9e91474fd2bb72cda0d5b231ef6d9cfa..15dc5a827da2a98a6a42c4087808805768842d1d 100644 (file)
  * By Paolo Abeni <[email protected]>
  */
 
-#ifndef _PCAP_BLUETOOTH_STRUCTS_H__
-#define _PCAP_BLUETOOTH_STRUCTS_H__
+#ifndef lib_pcap_bluetooth_h
+#define lib_pcap_bluetooth_h
+
+#include <pcap/pcap-inttypes.h>
 
 /*
  * Header prepended libpcap to each bluetooth h4 frame,
  * fields are in network byte order
  */
 typedef struct _pcap_bluetooth_h4_header {
-       u_int32_t direction; /* if first bit is set direction is incoming */
+       uint32_t direction; /* if first bit is set direction is incoming */
 } pcap_bluetooth_h4_header;
 
 /*
@@ -47,9 +49,8 @@ typedef struct _pcap_bluetooth_h4_header {
  * fields are in network byte order
  */
 typedef struct _pcap_bluetooth_linux_monitor_header {
-       u_int16_t adapter_id;
-       u_int16_t opcode;
+       uint16_t adapter_id;
+       uint16_t opcode;
 } pcap_bluetooth_linux_monitor_header;
 
-
 #endif