For a project I'm working on, I wanted to be able to detect inbound packets to an ethernet interface using tcpdump (ie tcpdump -nne -i eth0 inbound). After searching through the archives, I found the following post: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457991, but no mention of it anywhere else that I could tell. I tried applying the patch provided and it wouldn't apply cleanly to pcap-1.1.1, so I tweaked it to get it working. Anyways, here is the final version and it looks to be working properly.
Credit for the patch should go to the author of the post, Andrea Di Pasquale <whyx.it@gmail.com>, and not myself.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Last edit: Anonymous 2013-09-07
Administrators of the "libpcap" SourceForge project have superseded this tracker item (formerly artifact 3278212, now patch 56) with issue 252 of the "libpcap" GitHub project.