3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2011-2012 Intel Corporation
6 * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 #define PACKET_FILTER_SHOW_INDEX (1 << 0)
29 #define PACKET_FILTER_SHOW_DATE (1 << 1)
30 #define PACKET_FILTER_SHOW_TIME (1 << 2)
31 #define PACKET_FILTER_SHOW_ACL_DATA (1 << 3)
32 #define PACKET_FILTER_SHOW_SCO_DATA (1 << 4)
34 void packet_set_filter(unsigned long filter);
36 void packet_hexdump(const unsigned char *buf, uint16_t len);
38 void packet_control(struct timeval *tv, uint16_t index, uint16_t opcode,
39 const void *data, uint16_t size);
40 void packet_monitor(struct timeval *tv, uint16_t index, uint16_t opcode,
41 const void *data, uint16_t size);
43 void packet_new_index(struct timeval *tv, uint16_t index, const char *label,
44 uint8_t type, uint8_t bus, const char *name);
45 void packet_del_index(struct timeval *tv, uint16_t index, const char *label);
47 void packet_hci_command(struct timeval *tv, uint16_t index,
48 const void *data, uint16_t size);
49 void packet_hci_event(struct timeval *tv, uint16_t index,
50 const void *data, uint16_t size);
51 void packet_hci_acldata(struct timeval *tv, uint16_t index, bool in,
52 const void *data, uint16_t size);
53 void packet_hci_scodata(struct timeval *tv, uint16_t index, bool in,
54 const void *data, uint16_t size);