dect
/
libpcap
Archived
13
0
Fork 0

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.
This commit is contained in:
guy 2005-07-10 22:09:16 +00:00
parent 34023facce
commit d8d2d19c98
1 changed files with 2 additions and 4 deletions

View File

@ -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 @@ 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;