[tcpdump-workers] About libpcap version display on Windows

2016-07-01 Thread Yang Luo
Hi list, The current libpcap on Windows shows the version string in the "About Wireshark" window as ( https://github.com/the-tcpdump-group/libpcap/blob/master/pcap.c#L2118-L2123 ): with WinPcap version 4.0 (packet.dll version 0.07), based on libpcap version 1.x.y For latest Npcap 0.07 r17, it sho

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Matthew Luckie
Can you define the behaviour of 'not work' with BPF on tiger? "Not work" as in "if you select on a BPF device and nothing else, you will only wake up when the select timeout expires; the store buffer getting transferred to the hold buffer won't trigger a wakeup". ah, that may explain it, as

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Guy Harris
Guy Harris wrote: "Not work" as in "if you select on a BPF device and nothing else, you will only wake up when the select timeout expires; the store buffer getting transferred to the hold buffer won't trigger a wakeup". Actually, it might work for select(), although not for poll() - the sele

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Guy Harris
Matthew Luckie wrote: Can you define the behaviour of 'not work' with BPF on tiger? "Not work" as in "if you select on a BPF device and nothing else, you will only wake up when the select timeout expires; the store buffer getting transferred to the hold buffer won't trigger a wakeup". I us

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Matthew Luckie
The only UN*X systems I know of where select() can't be used are FreeBSD 4.3 and 4.4 (due to BPF deficiencies fixed in 4.5); OS X 10.4[.x] (due to select() not working on *any* character special files); Can you define the behaviour of 'not work' with BPF on tiger? I use select on a

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Guy Harris
Cyril wrote: And if the system can't use select() *and* the packet capture mechanism doesn't support a timeout ? The only UN*X systems I know of where select() can't be used are FreeBSD 4.3 and 4.4 (due to BPF deficiencies fixed in 4.5); OS X 10.4[.x] (due to select() not working o

Re: [tcpdump-workers] about libpcap

2005-07-09 Thread Cyril
Guy : However, on most UN*Xes, you can use "select()" on the file descriptor for the pcap_t, so that your program can wait either for packets to arrive or for something else. And if the system can't use select() *and* the packet capture mechanism doesn't support a timeout ? Do we need to p

Re: [tcpdump-workers] about libpcap

2005-07-08 Thread Guy Harris
On Jul 7, 2005, at 7:45 PM, hong liu wrote: Hello, I am using libpcap library to capture ip data from data link. I am wondering if there is a way to time out reading a packet from data link. For example, if there is no data coming in 1 second, timer times out and process will do other thi

[tcpdump-workers] about libpcap

2005-07-08 Thread hong liu
Hello, I am using libpcap library to capture ip data from data link. I am wondering if there is a way to time out reading a packet from data link. For example, if there is no data coming in 1 second, timer times out and process will do other things, like nonblocking. Now I am using pcap_loop