diff options
author | sam <sam@FreeBSD.org> | 2006-09-04 19:43:23 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-09-04 19:43:23 +0000 |
commit | ffd4bfbe7bca827ff32b489ba212a49c38c3f224 (patch) | |
tree | db8dd338004459feebb8546681de0f273dcd020f /contrib/libpcap/pcap-win32.c | |
parent | bf281a32a1c59fe37a685431dd57d7e432a7f3e0 (diff) | |
download | FreeBSD-src-ffd4bfbe7bca827ff32b489ba212a49c38c3f224.zip FreeBSD-src-ffd4bfbe7bca827ff32b489ba212a49c38c3f224.tar.gz |
Import of libpcap v0.9.4
Diffstat (limited to 'contrib/libpcap/pcap-win32.c')
-rw-r--r-- | contrib/libpcap/pcap-win32.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/libpcap/pcap-win32.c b/contrib/libpcap/pcap-win32.c index 5b814f0..1a75d43 100644 --- a/contrib/libpcap/pcap-win32.c +++ b/contrib/libpcap/pcap-win32.c @@ -32,7 +32,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.2 2005/06/10 03:48:56 risso Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.3 2005/07/10 17:52:54 risso Exp $ (LBL)"; #endif #include <pcap-int.h> @@ -498,6 +498,9 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, /* Set the buffer size */ p->bufsize = PcapBufSize; + /* Store the timeout. Used by pcap_setnonblock() */ + p->timeout= to_ms; + /* allocate Packet structure used during the capture */ if((p->Packet = PacketAllocatePacket())==NULL) { |