miekg/pcap — pull request #10 by growse (2014-02-09 22:26:14+00:00)
Title: Added SetDirection function to allow clients to call the set_direction

I needed to be able to use the `libpcap` `pcap_setdirection` function, so I added a wrapper in this library to allow go clients to set this. It takes a simple string which it matches against "in" and "out", before defaulting to `PCAP_D_INOUT`.