1a85e14b0SPeter Avalos /* 2a85e14b0SPeter Avalos * Copyright (c) 2006 Paolo Abeni (Italy) 3a85e14b0SPeter Avalos * All rights reserved. 4a85e14b0SPeter Avalos * 5a85e14b0SPeter Avalos * Redistribution and use in source and binary forms, with or without 6a85e14b0SPeter Avalos * modification, are permitted provided that the following conditions 7a85e14b0SPeter Avalos * are met: 8a85e14b0SPeter Avalos * 9a85e14b0SPeter Avalos * 1. Redistributions of source code must retain the above copyright 10a85e14b0SPeter Avalos * notice, this list of conditions and the following disclaimer. 11a85e14b0SPeter Avalos * 2. Redistributions in binary form must reproduce the above copyright 12a85e14b0SPeter Avalos * notice, this list of conditions and the following disclaimer in the 13a85e14b0SPeter Avalos * documentation and/or other materials provided with the distribution. 14a85e14b0SPeter Avalos * 3. The name of the author may not be used to endorse or promote 15a85e14b0SPeter Avalos * products derived from this software without specific prior written 16a85e14b0SPeter Avalos * permission. 17a85e14b0SPeter Avalos * 18a85e14b0SPeter Avalos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19a85e14b0SPeter Avalos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20a85e14b0SPeter Avalos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21a85e14b0SPeter Avalos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22a85e14b0SPeter Avalos * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23a85e14b0SPeter Avalos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24a85e14b0SPeter Avalos * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25a85e14b0SPeter Avalos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26a85e14b0SPeter Avalos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27a85e14b0SPeter Avalos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28a85e14b0SPeter Avalos * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29a85e14b0SPeter Avalos * 30a85e14b0SPeter Avalos * bluetooth data struct 31a85e14b0SPeter Avalos * By Paolo Abeni <paolo.abeni@email.it> 32a85e14b0SPeter Avalos */ 33a85e14b0SPeter Avalos 3497a9217aSAntonio Huete Jimenez #ifndef lib_pcap_bluetooth_h 3597a9217aSAntonio Huete Jimenez #define lib_pcap_bluetooth_h 36a85e14b0SPeter Avalos 37*3a289941SAaron LI #include <pcap/pcap-inttypes.h> 38*3a289941SAaron LI 39a85e14b0SPeter Avalos /* 4097a9217aSAntonio Huete Jimenez * Header prepended libpcap to each bluetooth h4 frame, 41a85e14b0SPeter Avalos * fields are in network byte order 42a85e14b0SPeter Avalos */ 43a85e14b0SPeter Avalos typedef struct _pcap_bluetooth_h4_header { 44*3a289941SAaron LI uint32_t direction; /* if first bit is set direction is incoming */ 45a85e14b0SPeter Avalos } pcap_bluetooth_h4_header; 46a85e14b0SPeter Avalos 4797a9217aSAntonio Huete Jimenez /* 4897a9217aSAntonio Huete Jimenez * Header prepended libpcap to each bluetooth linux monitor frame, 4997a9217aSAntonio Huete Jimenez * fields are in network byte order 5097a9217aSAntonio Huete Jimenez */ 5197a9217aSAntonio Huete Jimenez typedef struct _pcap_bluetooth_linux_monitor_header { 52*3a289941SAaron LI uint16_t adapter_id; 53*3a289941SAaron LI uint16_t opcode; 5497a9217aSAntonio Huete Jimenez } pcap_bluetooth_linux_monitor_header; 5597a9217aSAntonio Huete Jimenez 56a85e14b0SPeter Avalos #endif 57