This patch makes it possible to go get github.com/rapid7/godap without having to have libpcap-dev or libgeoip installed on your system. Currently, installs without libpcap-dev available will result in a complaint by the go compiler that pcap.h does not exist.
By default, the build will NOT include the pcap filter as of this change. The pcap filter will have to be explicitly compiled in by using the -tags="libpcap" option during go get, go install, go build, etc. Likewise for geoip.
What is this?
This patch makes it possible to
go get github.com/rapid7/godap
without having to havelibpcap-dev
orlibgeoip
installed on your system. Currently, installs without libpcap-dev available will result in a complaint by the go compiler that pcap.h does not exist.By default, the build will NOT include the
pcap
filter as of this change. Thepcap
filter will have to be explicitly compiled in by using the-tags="libpcap"
option duringgo get
,go install
,go build
, etc. Likewise for geoip.Testing
Manual