This PR exports a SetBPFDirection function, which allows this package to be used to capture outbound packets (the default is to only limit to inbound).
An alternative implementation would be to pass the direction flag as a member of the Config struct and set it in listenPacket().
This PR exports a SetBPFDirection function, which allows this package to be used to capture outbound packets (the default is to only limit to inbound).
An alternative implementation would be to pass the direction flag as a member of the Config struct and set it in listenPacket().