dect
/
libpcap
Archived
13
0
Fork 0

Patch from Onno van der Linden <onno@simplex.nl> to support Token Ring

on DLPI systems.
This commit is contained in:
guy 2001-02-21 09:07:40 +00:00
parent ae09ab3412
commit bc0425f86c
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Additional people who have contributed patches:
Love Hörnquist-Åstrand <lha@stacken.kth.se>
Monroe Williams <monroe@pobox.com>
Olaf Kirch <okir@caldera.de>
Onno van der Linden <onno@simplex.nl>
Peter Jeremy <peter.jeremy@alcatel.com.au>
Rafal Maszkowski <rzm@icm.edu.pl>
Rick Jones <raj@cup.hp.com>

View File

@ -38,7 +38,7 @@
#ifndef lint
static const char rcsid[] =
"@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.63 2000-11-22 05:32:55 guy Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.64 2001-02-21 09:07:41 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -448,6 +448,11 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
p->offset = 3;
break;
case DL_TPR:
p->linktype = DLT_IEEE802;
p->offset = 2;
break;
default:
snprintf(ebuf, PCAP_ERRBUF_SIZE, "unknown mac type %lu",
infop->dl_mac_type);