summaryrefslogtreecommitdiff
path: root/wiretap/btsnoop.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-02-03 21:11:53 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-02-03 21:11:53 +0000
commitef625890aab324946c97dfa26357049e3377c25a (patch)
tree3be42b7d6cdeb7cb033fa3ed154293a6d37d6a40 /wiretap/btsnoop.h
parenta341198859eaf64345d10d0966f9c4f00604b39d (diff)
downloadwireshark-ef625890aab324946c97dfa26357049e3377c25a.tar.gz
From Shane Kearns (bug 2237):
Added support for Symbian OS btsnoop. The bluetooth HCI layer in Symbian OS can be configured to log all packets to a file. The log format, "btsnoop" is based on the RFC1761 "snoop" format - but differences in the header make it incompatible. The btsnoop format supports logging of these formats: "H1" (raw HCI packets without framing) "H4" (HCI UART packets including packet type header) "H5" (HCI 3 wire UART packets including framing) "BCSP" (HCI bluecore serial protocol including framing) "H1" and "H4" are section numbers in the original v1 bluetooth specifications, but still used colloquially - wireshark's existing support for Linux bluez HCI logs uses the "H4" name. In practice, the "H1" format is used for H5,BCSP and USB HCI logs, as the HCI packet logs are mainly useful for debugging higher layers, bluetooth profiles and bluetooth applications. From me: Deleted some unused prototypes. Mark an unused parameter. svn path=/trunk/; revision=24263
Diffstat (limited to 'wiretap/btsnoop.h')
-rw-r--r--wiretap/btsnoop.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/wiretap/btsnoop.h b/wiretap/btsnoop.h
new file mode 100644
index 0000000000..3255688602
--- /dev/null
+++ b/wiretap/btsnoop.h
@@ -0,0 +1,30 @@
+/* btsnoop.h
+ *
+ * $Id$
+ *
+ * Wiretap Library
+ * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __W_BTSNOOP_H__
+#define __W_BTSNOOP_H__
+
+int btsnoop_open(wtap *wth, int *err, gchar **err_info);
+gboolean btsnoop_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err);
+int btsnoop_dump_can_write_encap(int encap);
+
+#endif