From 7ec660f72d927bfacdd2f534ec589692728f7aa5 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 10 Jul 2005 22:09:34 +0000 Subject: [PATCH] Stephen Donnely says MTP3 and SCCP don't belong in the list of DLT_ values for an HDLC link (MTP2 is what's usually run on those links, with MTP3 atop it); remove them. Also, boost dlt_count to match the number of DLT_ values. --- pcap-dag.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pcap-dag.c b/pcap-dag.c index 3965b83..5269eb1 100644 --- a/pcap-dag.c +++ b/pcap-dag.c @@ -17,7 +17,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dag.c,v 1.21.2.2 2005-07-07 06:56:03 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dag.c,v 1.21.2.3 2005-07-10 22:09:34 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -863,13 +863,11 @@ dag_get_datalink(pcap_t *p) case TYPE_MC_HDLC: if (p->dlt_list != NULL) { - p->dlt_count = 2; + p->dlt_count = 4; p->dlt_list[0] = DLT_CHDLC; p->dlt_list[1] = DLT_PPP_SERIAL; p->dlt_list[2] = DLT_FRELAY; p->dlt_list[3] = DLT_MTP2; - p->dlt_list[4] = DLT_MTP3; - p->dlt_list[5] = DLT_SCCP; } p->linktype = DLT_CHDLC; break;