FreeBSD 5.4
"Stock" pcaplib

I'm blocking on a read() invoked by pcap_lookupnet():

Program received signal SIGINT, Interrupt.
0x280ee6fb in read () from /lib/libc.so.5
(gdb) where
#0  0x280ee6fb in read () from /lib/libc.so.5
#1  0x28090c57 in pcap_lookupnet () from /usr/lib/libpcap.so.3
#2  0x28091adb in pcap_loop () from /usr/lib/libpcap.so.3
#3  0x08049cb9 in myTest (c=0x8054b20, pcb=0x804ac5c <myTestCallback>) at
myfile.c:532
#4  0x08049b58 in runTest (c=0x8054b20) at myfile.c:454
#5  0x08049406 in main (ac=13, av=0xbfbfec1c) at myfile.c:149
(gdb)

I don't get this behavior on Linux, but the interface on FreeBSD is
configured via DHCP while the Linux interfaces are staticly configured.  Any
idea as to whether that's a red herring, or a difference that could cause
the pcap_lookupnet() to hang?

Happy to RTFM / STFW if pointed in the right direction.







-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to