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
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
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