aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2001-02-21 09:07:40 +0000
committerguy <guy>2001-02-21 09:07:40 +0000
commitbc0425f86cc148bba1a8c394c5734c3b55c3b6d2 (patch)
treeb96f9c35da6cb76fc0344ca61b043b14e3c0767f /pcap-dlpi.c
parentae09ab34122cc567b73c6f584da67f2f3012599d (diff)
Patch from Onno van der Linden <onno@simplex.nl> to support Token Ring
on DLPI systems.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index e1bde1c..39a2927 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -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);