STRUCT NFT_TRANS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nft_trans(9) β€” Kernel API Manual

okay bestie, welcome to the struct nft_trans(9) page ✨ this is a kernel API manual page, and it's all about a nf_tables object update in transaction. yes that's the whole NAME section, no notes, she's concise πŸ’–


✨ SYNOPSIS ✨

struct nft_trans {
    struct list_head                list;
    struct net                      *net;
    struct nft_table                *table;
    int msg_type;
    u32 seq;
    u16 flags;
    u8 report:1;
    u8 put_net:1;
 };

like, there she is πŸŽ€ literally the whole struct, character for character, no cap.


🌸 Members 🌸

  • list β€” used internally 🫢 that's it, that's the whole description, she's lowkey mysterious
  • net β€” a struct net
  • table β€” the struct nft_table that the object resides in πŸ‘‘
  • msg_type β€” message type
  • seq β€” the netlink sequence number
  • flags β€” modifiers to new request
  • report β€” notify via unicast netlink message πŸ“¨
  • put_net β€” net needs to be put

πŸ’œ Description πŸ’œ

so the way that this works is: this right here is the info that's common to all objects in the transaction πŸ’« and it must always be the first member of derived sub-types. like, not optional, not a vibe, it's a rule. periodt πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/net/netfilter/nf_tables.h β€” and a whole friend group of siblings, iykyk:

  • 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_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_hook(9)
  • struct nft_trans_binding(9)

okay that's the page!! 🧚 source is the kernel file ./include/net/netfilter, dated October 2026, and it's filed under struct nft_trans(9). slay, go read the kernel source bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from