From fc6fdb7bee51cf5bff03c03716881ab5ac1cee27 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 21 Oct 2007 08:39:27 +0000 Subject: Add DLT_LAPD, for raw LAPD with no pseudo-header, as per Varuna De Silva. --- savefile.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'savefile.c') 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 . + */ +#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 } }; -- cgit v1.2.3