aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2007-09-19 02:40:34 +0000
committerguy <guy>2007-09-19 02:40:34 +0000
commitfe7433245e46d42424b8ca43676078ea9a678d0b (patch)
tree479946ff4d0ac5c785dfd736b84422acf91c37b9 /savefile.c
parent7b5c6831688ab3932c99e0056fffd17c16659d9e (diff)
New DLT for Bluetooth H:4 with pseudo-header giving direction.
Add support for additional link types to gencode.c, so we at least support "link[N:M]" and an empty expression. Sort the DLT_CHOICE values in order by the DLT_ value, add missing ones, and fix some existing descriptions.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index 0b0cdc4..b12ac4f 100644
--- a/savefile.c
+++ b/savefile.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.163 2007-09-10 20:17:18 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.164 2007-09-19 02:40:35 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -559,6 +559,12 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_JUNIPER_ST 200
+/*
+ * Bluetooth HCI UART transport layer (part H:4), with pseudo-header
+ * that includes direction information; requested by Paolo Abeni.
+ */
+#define LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR 201
+
static struct linktype_map {
int dlt;
@@ -822,6 +828,8 @@ static struct linktype_map {
/* Juniper Secure Tunnel */
{ DLT_JUNIPER_ST, LINKTYPE_JUNIPER_ST },
+ /* Bluetooth HCI UART transport layer, with pseudo-header */
+ { DLT_BLUETOOTH_HCI_H4_WITH_PHDR, LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR },
{ -1, -1 }
};