Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct initializer error #4

Open
ThomasJClark opened this issue Apr 26, 2015 · 1 comment
Open

Struct initializer error #4

ThomasJClark opened this issue Apr 26, 2015 · 1 comment

Comments

@ThomasJClark
Copy link

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}
@arunmk
Copy link

arunmk commented Jul 21, 2015

This is taken care of in the pull for issue #5 : #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants