aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2008-11-27 19:47:54 +0000
committerguy <guy>2008-11-27 19:47:54 +0000
commitc89dab565e84c3e51cc4d6e7e08c343850a0b73f (patch)
tree48f63a668e29b5c2bc66005d26967efdfc99e4f3 /savefile.c
parentdfc31b2781e759cfcb5d86e96841c30f4083651d (diff)
Link-layer types for GSM Um and Abis interfaces.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c14
1 files changed, 13 insertions, 1 deletions
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 <laforge@gnumonks.org>.
+ */
+#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 }
};