mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

Provide a BPFDirection Config member for BSD #49

Closed hdm closed 5 years ago

hdm commented 5 years ago

This PR adds the BPFDirection member to the Config structure and uses it to set the BPF direction for raw sockets on BSD-like operating systems. The default value of 0 preserves the previous behavior of only receiving inbound packets.

mdlayher commented 5 years ago

Thanks! Sorry for the delay.

hdm commented 5 years ago

Np! Thanks for merging!