Skip to content

Struct initializer error #4

@ThomasJClark

Description

@ThomasJClark

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions