Blame pcap/bluetooth.h

Packit 209cc3
/*
Packit 209cc3
 * Copyright (c) 2006 Paolo Abeni (Italy)
Packit 209cc3
 * All rights reserved.
Packit 209cc3
 *
Packit 209cc3
 * Redistribution and use in source and binary forms, with or without
Packit 209cc3
 * modification, are permitted provided that the following conditions
Packit 209cc3
 * are met:
Packit 209cc3
 *
Packit 209cc3
 * 1. Redistributions of source code must retain the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer.
Packit 209cc3
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer in the
Packit 209cc3
 * documentation and/or other materials provided with the distribution.
Packit 209cc3
 * 3. The name of the author may not be used to endorse or promote
Packit 209cc3
 * products derived from this software without specific prior written
Packit 209cc3
 * permission.
Packit 209cc3
 *
Packit 209cc3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 209cc3
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit 209cc3
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit 209cc3
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit 209cc3
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 209cc3
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 209cc3
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 209cc3
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 209cc3
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 209cc3
 *
Packit 209cc3
 * bluetooth data struct
Packit 209cc3
 * By Paolo Abeni <paolo.abeni@email.it>
Packit 209cc3
 */
Packit 209cc3
Packit 209cc3
#ifndef lib_pcap_bluetooth_h
Packit 209cc3
#define lib_pcap_bluetooth_h
Packit 209cc3
Packit 209cc3
#include <pcap/pcap-inttypes.h>
Packit 209cc3
Packit 209cc3
/*
Packit 209cc3
 * Header prepended libpcap to each bluetooth h4 frame,
Packit 209cc3
 * fields are in network byte order
Packit 209cc3
 */
Packit 209cc3
typedef struct _pcap_bluetooth_h4_header {
Packit 209cc3
	uint32_t direction; /* if first bit is set direction is incoming */
Packit 209cc3
} pcap_bluetooth_h4_header;
Packit 209cc3
Packit 209cc3
/*
Packit 209cc3
 * Header prepended libpcap to each bluetooth linux monitor frame,
Packit 209cc3
 * fields are in network byte order
Packit 209cc3
 */
Packit 209cc3
typedef struct _pcap_bluetooth_linux_monitor_header {
Packit 209cc3
	uint16_t adapter_id;
Packit 209cc3
	uint16_t opcode;
Packit 209cc3
} pcap_bluetooth_linux_monitor_header;
Packit 209cc3
Packit 209cc3
#endif