X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/f0b11471594801ed0bfbf7af9bba164ccc134ac5..09b51d326c38ea8e10ce4da09c09d50e08c5aeb8:/pcap/bluetooth.h diff --git a/pcap/bluetooth.h b/pcap/bluetooth.h index 01bd5a2e..15dc5a82 100644 --- a/pcap/bluetooth.h +++ b/pcap/bluetooth.h @@ -31,15 +31,17 @@ * By Paolo Abeni */ -#ifndef _PCAP_BLUETOOTH_STRUCTS_H__ -#define _PCAP_BLUETOOTH_STRUCTS_H__ +#ifndef lib_pcap_bluetooth_h +#define lib_pcap_bluetooth_h + +#include /* * 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