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

add config.SkipErrorENOBUFS option #36

Closed
wants to merge 1 commit into from

Conversation

patryk4815
Copy link
Contributor

@patryk4815 patryk4815 commented Jan 13, 2024

Im just upstreaming patches that I had on my company hardfork since 5years.
When I have a lot of messages on netlink, I may get an ENOBUFS error, which causes netlink to close its socket.
This NoENOBUFS option causes the socket to continue working, but will lose some of the messages.

Some more info about ENOBUFS: google/nftables#103

@florianl
Copy link
Owner

Thanks for your contribution and bringing this topic back upstream.
Instead of harcording this single option providing a proper API to set all available netlink.ConnOption should be prefered.

// SetOption allows to enable or disable netlink socket options.
func (nflog *Nflog) SetOption(o netlink.ConnOption, enable bool) error

Would you be interested in contributing this?

@florianl
Copy link
Owner

Superseded by #40.

@florianl florianl closed this Mar 25, 2024
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

Successfully merging this pull request may close these issues.

2 participants