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

Default value for MaxQueueLen #3

Open
florianl opened this issue May 7, 2019 · 0 comments
Open

Default value for MaxQueueLen #3

florianl opened this issue May 7, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@florianl
Copy link
Owner

florianl commented May 7, 2019

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

@florianl florianl added the enhancement New feature or request label May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant