tcpdump mailing list archives

Re: libpcap on Mac Os X 10.6 Snow Leopard


From: Guy Harris <guy () alum mit edu>
Date: Thu, 11 Feb 2010 00:20:13 -0800


On Feb 10, 2010, at 1:42 PM, Marco De Angelis wrote:

So the call to pcap_dispatch not preceded by a select() could still 
cause problems in 10.6.2?

It *shouldn't* cause problems, but, from what you and Carter are reporting, it *does* cause problems.

This is the output on my machine:

BIOCGRTIMEOUT = 0x4008426e, t.tv_sec = 1, t.tv_usec = 0

OK, that's a 1-second timeout, and that's the right ioctl code for BIOCGRTIMEOUT in a world where its argument is a 
32-bit "struct timeval" (which is not correct in 64-bit-land on OS X, which is the problem I mentioned in 10.6 and 
10.6.1, but libpcap works around that in 10.6.2, and in the top-of-Git-tree version on tcpdump.org).

So it appears that the timeout is correct.

Can you cut your application down to the smallest code snippet that shows the problem, and send that to me?  You don't 
have to print the contents of the packet, just report when they arrive (or don't arrive, in the case you're dealing 
with).  I'll try running in on 10.6.2 and see what the heck is going on; there's nothing obvious in 10.6.2 that should 
be causing this problem, and, in fact, tcpdump isn't exhibiting the problem.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: