From cf5ea4eeec9d6408bf2dc1aa5538f1a74051411f Mon Sep 17 00:00:00 2001 From: gianluca Date: Thu, 14 Jun 2007 22:08:38 +0000 Subject: [PATCH] Added support for PPI. --- pcap-win32.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcap-win32.c b/pcap-win32.c index 540888f..35fc219 100644 --- a/pcap-win32.c +++ b/pcap-win32.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.32 2007-02-19 18:35:06 gianluca Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.33 2007-06-14 22:08:38 gianluca Exp $ (LBL)"; #endif #include @@ -495,6 +495,10 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, p->linktype = DLT_IEEE802_11_RADIO; break; + case NdisMediumPpi: + p->linktype = DLT_PPI; + break; + default: p->linktype = DLT_EN10MB; /*an unknown adapter is assumed to be ethernet*/ break;