From fe7433245e46d42424b8ca43676078ea9a678d0b Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 19 Sep 2007 02:40:34 +0000 Subject: 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. --- savefile.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'savefile.c') 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 } }; -- cgit v1.2.3