Skip to content

Default value for MaxQueueLen #3

@florianl

Description

@florianl

In [1] a default value is defined for the NfQueue maximum length. If not set explicit, the default value for this parameter [2] in this Go implementation is 0. This can result in unexpected behaviour. Therefore, find a way to check if MaxQueueLen is set - if not use the kernel default value.

[1] https://github.com/torvalds/linux/blob/cd8dead0c39457e58ec1d36db93aedca811d48f1/net/netfilter/nfnetlink_queue.c#L51
[2] https://github.com/florianl/go-nfqueue/blob/master/types.go#L22

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions