STRUCT NFT_TRACEINFO(9)
π 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 ofskb->nf_tracefrom 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 anenum nft_trace_typesand packed intotype:8. slay, bitfields π§skbidβ au32hash 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, aconst 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms