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.
diff --git a/pcap-dag.c b/pcap-dag.c
index 3065957..8ec79eb 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.23 2005-07-07 06:55:20 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dag.c,v 1.24 2005-07-10 22:09:16 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -863,13 +863,11 @@
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;