aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2007-10-21 08:39:27 +0000
committerguy <guy>2007-10-21 08:39:27 +0000
commitfc6fdb7bee51cf5bff03c03716881ab5ac1cee27 (patch)
tree2fa06eb816320c1f64b1c3b1b3fb9f10cf12c80e /savefile.c
parentbb9a52d915411c911516d2460583abd5c64bc678 (diff)
Add DLT_LAPD, for raw LAPD with no pseudo-header, as per Varuna De
Silva.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index fb0806f..4eab53c 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.169 2007-10-17 18:52:41 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.170 2007-10-21 08:39:27 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -574,6 +574,13 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_AX25_KISS 202
+/*
+ * LAPD packets from an ISDN channel, starting with the address field,
+ * with no pseudo-header.
+ * Requested by Varuna De Silva <varunax@gmail.com>.
+ */
+#define LINKTYPE_LAPD 203
+
static struct linktype_map {
int dlt;
@@ -843,6 +850,9 @@ static struct linktype_map {
/* AX.25 with KISS header */
{ DLT_AX25_KISS, LINKTYPE_AX25_KISS },
+ /* Raw LAPD, with no pseudo-header */
+ { DLT_LAPD, LINKTYPE_LAPD },
+
{ -1, -1 }
};