Re: [tcpdump-workers] libpcap timeout weirdness

2013-03-25 Thread Robert Monaghan
My current code (before using libpcap) uses this very method. I set up a raw socket, set the DEMUX type, and I capture traffic. The problem with this approach is that it seems to have a fair bit of overhead in the OS. (At least on the Mac.) I have to throttle traffic down my hardware to about 25

Re: [tcpdump-workers] libpcap timeout weirdness

2013-03-24 Thread Robert Monaghan
performance for all of my users. I tried a timeout of 0, using pcap_set_timeout. But this ever called my callback. I am curious to know if anyone has any thoughts.. Thanks! bob. On Mar 24, 2013, at 7:51 PM, Robert Monaghan wrote: > Hi Everyone! > > I am using the built in Lib

[tcpdump-workers] libpcap timeout weirdness

2013-03-24 Thread Robert Monaghan
Hi Everyone! I am using the built in Libpcap library that comes with MacOSX. (MacOSX 10.8.3) I have set up a background GCD dispatch queue, where the libpcap is set up and waits for packets to arrive on my 10Gig card. The code is very trivial, and appears as if it should works well.. Here is th