STRUCT NFT_REGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nft_regs(9) β€” nf_tables register set

okay so bestie, welcome to the struct nft_regs(9) page from the Kernel API Manual ✨ this is literally the nf_tables register set and it's giving main character energy, so let's get into it πŸŽ€


🌸 SYNOPSIS

struct nft_regs {
    union {
      u32 data[NFT_REG32_NUM];
      struct nft_verdict      verdict;
    };
 };
yes the indentation in there is exactly as the kernel gods wrote it, don't come for me πŸ™ˆ

πŸ¦‹ Members

  • {unnamed_union} β€” anonymous, no name, no thoughts, just vibes πŸ’… it's literally an unnamed union and that's iconic of it.
  • data β€” the data registers. that's it, that's the member ✨
  • verdict β€” the verdict register πŸ‘‘ the one that's special, as you're about to find out.

πŸ’œ Description

okay so here's the tea πŸ“: the first four data registers alias to the verdict register. fr fr. they're sharing the same space, no cap.


πŸ”₯ SEE ALSO

this list is long bestie, but we do not skip. every single one, in order, periodt:

  • Kernel file ./include/net/netfilter/nf_tables.h
  • struct nft_verdict(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_set_ext(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)

like, go read them all. i'll wait πŸ’–


and that's the whole page bestie 🫢 this little icon came from the source path ./include/net/netfilter, dated October 2026, and it's filed under struct nft_regs(9). slay πŸ’…βœ¨

πŸ“¦ where this page comes from