Deleted Added
full compact
2,3c2,3
< * Copyright (c) 1999 - 2003
< * NetGroup, Politecnico di Torino (Italy)
---
> * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
> * Copyright (c) 2005 - 2007 CACE Technologies, Davis (California)
15,17c15,18
< * 3. Neither the name of the Politecnico di Torino nor the names of its
< * contributors may be used to endorse or promote products derived from
< * this software without specific prior written permission.
---
> * 3. Neither the name of the Politecnico di Torino, CACE Technologies
> * nor the names of its contributors may be used to endorse or promote
> * products derived from this software without specific prior written
> * permission.
35c36
< "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.3 2005/07/10 17:52:54 risso Exp $ (LBL)";
---
> "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.7 2007/06/14 22:07:14 gianluca Exp $ (LBL)";
39c40
< #include <packet32.h>
---
> #include <Packet32.h>
488a490,501
> case NdisMediumBare80211:
> p->linktype = DLT_IEEE802_11;
> break;
>
> case NdisMediumRadio80211:
> p->linktype = DLT_IEEE802_11_RADIO;
> break;
>
> case NdisMediumPpi:
> p->linktype = DLT_PPI;
> break;
>
494,496c507,509
< /* Set promisquous mode */
< if (promisc) PacketSetHwFilter(p->adapter,NDIS_PACKET_TYPE_PROMISCUOUS);
< else PacketSetHwFilter(p->adapter,NDIS_PACKET_TYPE_ALL_LOCAL);
---
> /* Set promiscuous mode */
> if (promisc)
> {
497a511,525
> if (PacketSetHwFilter(p->adapter,NDIS_PACKET_TYPE_PROMISCUOUS) == FALSE)
> {
> snprintf(ebuf, PCAP_ERRBUF_SIZE, "failed to set hardware filter to promiscuous mode");
> goto bad;
> }
> }
> else
> {
> if (PacketSetHwFilter(p->adapter,NDIS_PACKET_TYPE_ALL_LOCAL) == FALSE)
> {
> snprintf(ebuf, PCAP_ERRBUF_SIZE, "failed to set hardware filter to non-promiscuous mode");
> goto bad;
> }
> }
>