shadowbq/pcaprub — pull request #11 by lupine (2011-12-08 13:58:15+00:00)
Title: Patch for pcaprub

Hi,

When setting a BPF filter against an interface that doesn't have an
IPv4 address, pcap_lookupnet() returns an error like:

"WARNING: : no IPv4 address assigned"

the tcpdump source code (tcpdump.c:1230) outputs this as a warning then
continues, setting net and mask to 0. This behaviour lets you use
BPF (with a few caveats - behaviour is different in a few cases) on
interfaces lacking an IPv4 address.

also, lib/version.rb is not valid ruby - looks like a botched merge. I haven't patched it up, since you might want a v0.12 or something instead.