STRUCT NFT_SET_BINDING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is a page from the Kernel API Manual, and bestie, it's literally about struct nft_set_binding. no cap. It's the nf_tables set binding struct, and we're gonna go through it together. 🫢

πŸŽ€ NAME πŸŽ€

struct nft_set_binding β€” nf_tables set binding. That's the whole vibe: this struct is the nf_tables set binding, periodt. πŸ’…

✨ SYNOPSIS ✨

okay so here's the shape, exactly:

struct nft_set_binding {
    struct list_head                list;
    const struct nft_chain          *chain;
    u32 flags;
 };

πŸ’… Members πŸ’…

  • list β€” set bindings list node. literally the list node, bestie. πŸŽ€
  • chain β€” chain containing the rule bound to the set. In the synopsis it's a const struct nft_chain *, iykyk. πŸ”₯
  • flags β€” set action flags. that's the flags situation. ✨

🌸 DESCRIPTION 🌸

A set binding contains all information necessary for validation of new elements added to a bound set. That's it. That's the job. It holds all the info you need for validating new elements when they're added to a bound set. iconic, honestly. πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, the required-reading friend group is huge and we are not skipping a single one:

  • Kernel file: ./include/net/netfilter/nf_tables.h
  • 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)
  • 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)

xoxo, bestie πŸ’– the source/version spot on this one is ./include/net/netfilter, the date is October 2026, and the page is struct nft_set_binding(9). byeeee πŸŽ€

πŸ“¦ where this page comes from