Skip to content

Conversation

@vgskye
Copy link

@vgskye vgskye commented Jun 1, 2025

Description

Adds missing nftables definitions, mostly NFTA_ enums.

Sources

https://github.com/torvalds/linux/blob/7d4e49a77d9930c69751b9192448fda6ff9100f1/include/uapi/linux/netfilter/nf_tables.h

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@tgross35
Copy link
Contributor

@vgskye this has been a draft for a while, what is its status?

If you would like to move this forward, I'd prefer for it to be added to the new src/new module under src/new/linux_uapi/linux/netfilter/nf_tables.rs, following the pattern of others in that directory. Existing definitions that are part of the same enums can move as well. c_enum! should be used rather than handwriting the types.

@rustbot author

@rustbot
Copy link
Collaborator

rustbot commented Oct 29, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants