STRUCT NFT_SET_EXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct nft_set_ext(9) πŸ’–

Bestie, welcome to the Kernel API Manual entry for struct nft_set_ext β€” the set extensions struct, and yes, it's giving main-character kernel energy. ✨


🌸 NAME 🌸

struct nft_set_ext β€” set extensions. That's literally the name, and it ate. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct nft_set_ext {
           u8 genmask;
           u8 offset[NFT_SET_EXT_NUM];
           char data[];
        };

πŸŽ€ Members πŸŽ€

  • genmask β€” the generation mask, but also flags (see NFT_SET_ELEM_DEAD_BIT). Yes, it’s doing double duty, slay. πŸŽ€
  • offset β€” offsets of individual extension types. Keeping track of where everyone lives, lowkey iconic. πŸ’…
  • data β€” beginning of extension data. The actual data starts here, no cap. πŸ¦‹

🌈 Description 🌈

Okay so here’s the alignment tea: this structure must be aligned to word size, otherwise atomic bitops on the genmask field can cause alignment failure on some archs. Not me forgetting the alignment warning, bestie β€” that’s a real caveat. 😭 Keep it aligned, fr fr. πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./include/net/netfilter/nf_tables.h β€” the kernel fam is all here:

  • struct nft_verdict(9)
  • struct nft_regs(9)
  • struct nft_ctx(9)
  • struct nft_userdata(9)
  • struct nft_set_elem(9)
  • enum nft_iter_type(9)
  • struct nft_set_desc(9)
  • enum nft_set_class(9)
  • struct nft_set_estimate(9)
  • struct nft_expr(9)
  • struct nft_set_ops(9)
  • struct nft_set_type(9)
  • struct nft_set(9)
  • struct nft_set_binding(9)
  • enum nft_set_extensions(9)
  • struct nft_set_ext_type(9)
  • struct nft_set_ext_tmpl(9)
  • struct nft_expr_type(9)
  • struct nft_expr_ops(9)
  • struct nft_rule(9)
  • struct nft_chain_validate_state(9)
  • struct nft_chain(9)
  • struct nft_chain_type(9)
  • struct nft_base_chain(9)
  • struct nft_table(9)
  • struct nft_object_hash_key(9)
  • struct nft_object(9)
  • struct nft_object_type(9)
  • struct nft_object_ops(9)
  • struct nft_flowtable(9)
  • struct nft_traceinfo(9)
  • struct nft_trans(9)
  • struct nft_trans_hook(9)
  • struct nft_trans_binding(9)

That’s the whole squad. 🫢


Catch you in ./include/net/netfilter β€” this page is dated October 2026, and it’s the struct nft_set_ext(9) manual page from the Kernel API Manual. Bye bestie, stay aligned πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from