From c89dab565e84c3e51cc4d6e7e08c343850a0b73f Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 27 Nov 2008 19:47:54 +0000 Subject: Link-layer types for GSM Um and Abis interfaces. --- savefile.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'savefile.c') diff --git a/savefile.c b/savefile.c index 66ba16b..2650100 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.179 2008-11-18 07:48:56 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.180 2008-11-27 19:47:54 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -655,6 +655,14 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_LINUX_EVDEV 216 +/* + * GSM Um and Abis interfaces, preceded by a "gsmtap" header. + * + * Requested by Harald Welte . + */ +#define LINKTYPE_GSMTAP_UM 217 +#define LINKTYPE_GSMTAP_ABIS 218 + static struct linktype_map { int dlt; @@ -963,6 +971,10 @@ static struct linktype_map { /* Input device events from Linux /dev/input/eventN devices */ { DLT_LINUX_EVDEV, LINKTYPE_LINUX_EVDEV }, + /* GSM types */ + { DLT_GSMTAP_UM, LINKTYPE_GSMTAP_UM }, + { DLT_GSMTAP_ABIS, LINKTYPE_GSMTAP_ABIS }, + { -1, -1 } }; -- cgit v1.2.3