go-netfilter-queue icon indicating copy to clipboard operation
go-netfilter-queue copied to clipboard

Struct initializer error

Open ThomasJClark opened this issue 10 years ago • 1 comments

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}

ThomasJClark avatar Apr 26 '15 23:04 ThomasJClark

This is taken care of in the pull for issue #5 : https://github.com/kraman/go-netfilter-queue/pull/6

arunmk avatar Jul 21 '15 17:07 arunmk