david415 / HoneyBadger

Quantum Insert detector/recorder
GNU General Public License v3.0
305 stars 39 forks source link

BSD compatibility: Add pure golang file pcap driver #86

Closed david415 closed 8 years ago

david415 commented 8 years ago

libpcap does not reliable build with gopacket on BSD systems. Therefore in order for BSD systems to read pcap files we need another driver to support this feature. Gopacket has a pcapgo module which is pure golang.

https://godoc.org/github.com/google/gopacket/pcapgo

This issue will be resolved when we have a pcapgo driver for HoneyBadger that the user can select via the -daq DataAQcuisition commandline option.

For extra credit this -daq option should be auto-selected if the -pcapfile option is used on a BSD system.

david415 commented 8 years ago

done! we can now use our pcapgo driver.

also i was able to build our libpcap driver on HardenedBSD which means it should work on FreeBSD.