STRUCT NFT_EXPR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the struct nft_expr(9) page β€” straight out of the Kernel API Manual. this is the little guy that makes nf_tables expressions go brrr, and honestly? kind of iconic. let's get into it 🫢


✨ NAME ✨

struct nft_expr β€” nf_tables expression

like, literally the expression struct for nf_tables. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

struct nft_expr {
    const struct nft_expr_ops       *ops;
    unsigned char                   data[];
};

look at her. two members, zero drama, maximum main character energy πŸ‘‘


πŸŽ€ Members πŸŽ€

  • ops β€” the expression ops, aka the whole personality of this expression. this is where the operations live 🧚
  • data β€” the expression's private data. it's a flexible array member (see that []? yeah), so each expression keeps its own lil stash of stuff right there πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

okay this is the part where the manpage goes feral and lists everything, so buckle up bestie, we're doing the whole friend group πŸ’€

Kernel file ./include/net/netfilter/nf_tables.h, plus:

  • 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_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)

no cap, that's the entire netfilter extended family in one page. read them all, they're all slaying in their own way πŸ”₯


okay that's the page! this beauty lives at ./include/net/netfilter and the version/date situation is October 2026. go forth and reference it, bestie β­πŸŽ€πŸ’–

πŸ“¦ where this page comes from