pcap_set_timeout issues on OSX
Hexadecimal and raw packet injector and sniffer.
Brought to you by:
acriemanuele
Fails with "Unable to activate the interface: BIOCSRTIMEOUT: Invalid argument" when I ran "sudo ./hexinject -s -i en0" on OSX 10.7.
Worked around by setting pcap_set_timeout(fp, -1) != 0) to pcap_set_timeout(fp, 1000) != 0) in hex inject.c.
built with libpcap v1.1.1
Thanks,
gcoumessos at gmail dot com
Relevant discussion?: http://www.mail-archive.com/tcpdump-workers@lists.tcpdump.org/msg01724.html