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

Package for BPF file handling #59

Closed hyperized closed 4 years ago

hyperized commented 4 years ago

Thank you for merging my previous PR.

I was inspired to turn a bit of your code into a small utility package: hyperized/bpf -> file.go

The main added value is that it implements the file listing suggestion from #54

mdlayher commented 4 years ago

Thanks for the PR. In this particular case, I'm not sure the small amount of functionality being replaced is worth pulling in another dependency. If there were a large amount of system call work or complicated initailization, I'd be much more interested in compartmentalizing that functionality.

Thanks again for your help.