go-netfilter-queue
go-netfilter-queue copied to clipboard
Struct initializer error
It looks like an additional field was added to DecodeOptions in gopacket, and because Go's dependency management solution is to simply always download the latest version, go-netfilter-queue no longer builds. The extra field was added last October because it's "useful for testing".
$ go get github.com/kraman/go-netfilter-queue
# github.com/kraman/go-netfilter-queue
../../kraman/go-netfilter-queue/netfilter.go:147: too few values in struct initializer
A more future-proof solution would be to explicitly name the fields being initialized.
gopacket.DecodeOptions{Lazy: true, NoCopy: true}
This is taken care of in the pull for issue #5 : https://github.com/kraman/go-netfilter-queue/pull/6