STRUCT NFT_TRACEINFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's all about struct nft_traceinfo, which is literally the little vibe-holder for nft tracing information and state. it keeps track of what's going on while your rules get evaluated, and honestly? it's giving backstage-pass energy πŸŽ€


✨ NAME ✨

struct nft_traceinfo β€” nft tracing information and state πŸ¦‹


🌸 SYNOPSIS 🌸

struct nft_traceinfo {
    bool trace;
    bool nf_trace;
    bool packet_dumped;
    enum nft_trace_types            type:8;
    u32 skbid;
    const struct nft_base_chain     *basechain;
 };

like, that's the whole shape of it. no cap. πŸ‘‘


πŸ’… Members πŸ’…

  • trace β€” this is the "yep, the other struct members are initialised" flag. it's the green checkmark bestie, the permission slip for the rest of the fields 🫢
  • nf_trace β€” a copy of skb->nf_trace from before rule evaluation happened. a little time capsule of the before-times 😭
  • packet_dumped β€” shows that the packet headers already got sent out in a previous traceinfo message. lowkey the "been there, done that" flag πŸ“¦
  • type β€” the event type, typed as an enum nft_trace_types and packed into type:8. slay, bitfields 🧚
  • skbid β€” a u32 hash of the skb, used as the trace id. it's the skb's little ID card, fr fr πŸͺͺ
  • basechain β€” the base chain currently being processed, a const struct nft_base_chain *. main character energy, honestly πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

all the siblings and cousins, in the order the kernel file lists them β€” 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), 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_trans(9), struct nft_trans_hook(9), struct nft_trans_binding(9)

like... that's a lot of friends. read them all, bestie, they're all iconic πŸ’€βœ¨


and that's the whole page, no notes πŸ™ˆ this cutie lives in ./include/net/netfilter and the date on the tin is October 2026 β€” go off, kernel docs, periodt πŸ’œπŸŽ€

πŸ“¦ where this page comes from