Patch from Onno van der Linden <onno@simplex.nl> to support Token Ring
on DLPI systems.
This commit is contained in:
parent
ae09ab3412
commit
bc0425f86c
1
CREDITS
1
CREDITS
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in New Issue