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

Fix Fib parsing #296

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Fix Fib parsing #296

merged 1 commit into from
Jan 16, 2025

Conversation

turekt
Copy link
Contributor

@turekt turekt commented Jan 14, 2025

Per issue #291, FIB objects are not parsed although the implementation exists. This PR fixes this issue.

Additionally, the initial FIB implementation did not parse the object properly so I changed that as well. The initial implementation assumed that result field is uint32 used as flag, but per original libnftnl implementation, I would say that result is uint32 referring to only a single value: https://git.netfilter.org/libnftnl/tree/include/linux/netfilter/nf_tables.h?id=ff37c01480cd0b938658d180ff5c7b1958ad250f#n1605

Since the initial implementation used booleans, I decided to not change that for this PR.

Copy link
Collaborator

@stapelberg stapelberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this fix!

expr/fib.go Outdated Show resolved Hide resolved
@stapelberg stapelberg merged commit 1c78972 into google:main Jan 16, 2025
2 checks passed
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