mcr/libpcap — pull request #3 by dpward (2011-12-21 05:53:53+00:00)
Title: libpcap 'inbound'/'outbound' filter fixes for Linux

I'm sending a couple of fixes to the 'inbound' and 'outbound' filters in libpcap affecting Linux. I have compiled and tested under Linux as well as FreeBSD (to make sure it doesn't affect non-Linux builds).

Note that the behavior of the 'inbound' filter for Linux cooked captures is slightly modified, with the intent of making the meaning of 'inbound' consistent across all link types and with pcap_setdirection(). Since installing an 'inbound' filter for Linux cooked captures into the kernel was broken anyway, it doesn't seem that there would be any impact.

I'm not sure if there is a more preferred way to handle the LSF- or PF_PACKET-specific includes/defines in gencode.h.

Please let me know if there are any questions or comments. Thank you.