Re: [tcpdump-workers] pcap_loop - any other option that won't block

2011-05-05 Thread Gianluca Varenni
@lists.tcpdump.org Subject: [tcpdump-workers] pcap_loop - any other option that won't block while sniffing for infinite time Hi. I am looking to setup a kind of a sniffer manager in C that is cross platform (Windows, Linux). I have everything working in both platforms, with the exception of one thing - the

Re: [tcpdump-workers] pcap_loop - any other option that won't block while sniffing for infinite time

2011-05-05 Thread Guy Harris
On May 5, 2011, at 8:29 AM, Jeff Garrett wrote: > I want to be able to return from Step 2 and say "yes, sniffing was started > successfully" or "no there was an error". I also want the sniffing to occur > infinitely, or until I say stop (via pcap_breakloop() function). > In addition, I want to b

[tcpdump-workers] pcap_loop - any other option that won't block while sniffing for infinite time

2011-05-05 Thread Jeff Garrett
Hi. I am looking to setup a kind of a sniffer manager in C that is cross platform (Windows, Linux). I have everything working in both platforms, with the exception of one thing - the main sniffing loop. So far, the code I have used is nothing that I haven't already seen online in various places.