STRUCT NFT_OBJECT_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is the struct nft_object_type(9) page from the Kernel API Manual, and the name is literally stateful object type. That’s the whole NAME vibe: struct nft_object_type β€” stateful object type. Periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

Here’s the struct definition, exact tokens and all β€” read it like a recipe for object-type realness:

struct nft_object_type {
    const struct nft_object_ops     *(*select_ops)(const struct nft_ctx *, const struct nlattr * const tb[]);
    const struct nft_object_ops     *ops;
    struct list_head                list;
    u32 type;
    unsigned int                    maxattr;
    u8 family;
    struct module                   *owner;
    const struct nla_policy         *policy;
 };

πŸ‘‘ Members πŸ‘‘

Every member, no skips, because we don’t do missing-field energy here:

  • select_ops β€” the function to select nft_object_ops; it’s the picker, the selector, the main character of ops selection. ✨
  • ops β€” the default ops, used when no select_ops functions is present.
  • list β€” a list node in the list of object types.
  • type β€” stateful object numeric type.
  • maxattr β€” maximum netlink attribute.
  • family β€” address family for AF-specific object types.
  • owner β€” module owner.
  • policy β€” netlink attribute policy.

🌈 SEE ALSO 🌈

Kernel file: ./include/net/netfilter/nf_tables.h. And the whole friend group is here, no cap:

  • 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_ops(9)
  • struct nft_flowtable(9)
  • struct nft_traceinfo(9)
  • struct nft_trans(9)
  • struct nft_trans_hook(9)
  • struct nft_trans_binding(9)

Source/version: ./include/net/netfilter Β· date: October 2026 Β· page: struct nft_object_type(9) β€” bye bestie, go read the kernel 🫢✨

πŸ“¦ where this page comes from