Controlling libpcap

Motivated by FlowForwarding/LINC-Switch#283.