zettio/weave — pull request #66 by dpw (2014-09-17 22:45:13+00:00)
Title: Filter outbound packets in the kernel

It turns out that under Linux, libpcap implements the SetDirection
filtering in userspace, causing some spurious wake ups of the packet
capture thread. So set a BPF filter to discard outbound packets inside
the kernel.