1213267Sluigi/*
2204591Sluigi * Copyright (c) 2006 Paolo Abeni (Italy)
3204591Sluigi * All rights reserved.
4204591Sluigi *
5204591Sluigi * Redistribution and use in source and binary forms, with or without
6204591Sluigi * modification, are permitted provided that the following conditions
7204591Sluigi * are met:
8204591Sluigi *
9204591Sluigi * 1. Redistributions of source code must retain the above copyright
10204591Sluigi * notice, this list of conditions and the following disclaimer.
11204591Sluigi * 2. Redistributions in binary form must reproduce the above copyright
12204591Sluigi * notice, this list of conditions and the following disclaimer in the
13204591Sluigi * documentation and/or other materials provided with the distribution.
14204591Sluigi * 3. The name of the author may not be used to endorse or promote
15204591Sluigi * products derived from this software without specific prior written
16204591Sluigi * permission.
17204591Sluigi *
18204591Sluigi * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19204591Sluigi * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20204591Sluigi * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21204591Sluigi * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22204591Sluigi * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23204591Sluigi * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24204591Sluigi * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25204591Sluigi * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26204591Sluigi * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27204591Sluigi * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28204591Sluigi * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29204591Sluigi *
30204591Sluigi * bluetooth data struct
31204591Sluigi * By Paolo Abeni <paolo.abeni@email.it>
32204591Sluigi */
33204591Sluigi
34204591Sluigi#ifndef lib_pcap_bluetooth_h
35204591Sluigi#define lib_pcap_bluetooth_h
36204591Sluigi
37204591Sluigi#include <pcap/pcap-inttypes.h>
38204591Sluigi
39204591Sluigi/*
40204591Sluigi * Header prepended libpcap to each bluetooth h4 frame,
41204591Sluigi * fields are in network byte order
42204591Sluigi */
43204591Sluigitypedef struct _pcap_bluetooth_h4_header {
44204591Sluigi	uint32_t direction; /* if first bit is set direction is incoming */
45204591Sluigi} pcap_bluetooth_h4_header;
46204591Sluigi
47204591Sluigi/*
48204591Sluigi * Header prepended libpcap to each bluetooth linux monitor frame,
49204591Sluigi * fields are in network byte order
50204591Sluigi */
51204591Sluigitypedef struct _pcap_bluetooth_linux_monitor_header {
52204591Sluigi	uint16_t adapter_id;
53204591Sluigi	uint16_t opcode;
54204591Sluigi} pcap_bluetooth_linux_monitor_header;
55204591Sluigi
56204591Sluigi#endif
57204591Sluigi