nftnl_parse_ctx(3)
β¨ nftnl_parse_ctx(3) β¨
okay bestie, welcome to nftnl_parse_ctx β it lives in the Library Functions Manual section and it's genuinely the little struct that could π she's the parse context for libnftnl and she holds literally everything you need while you're walking a ruleset, no cap.
πΈ NAME πΈ
nftnl_parse_ctx β the parse context struct, periodt.
π SYNOPSIS π
π Data Fields π
enum nftnl_cmd_type cmd
enum nftnl_ruleset_type type
union {
struct nftnl_table * table
struct nftnl_chain * chain
struct nftnl_rule * rule
struct nftnl_set * set
struct nftnl_set_elem * set_elem
};
void * data
uint32_t format
uint32_t set_id
struct nftnl_set_list * set_list
int(* cb )(const struct nftnl_parse_ctx *ctx)
uint16_t flags
π¦ Detailed Description π¦
she's defined at line 31 of the file ruleset.c. that's it, that's the whole vibe check π«Ά
π₯ Field Documentation π₯
int(* nftnl_parse_ctx::cb) (const struct nftnl_parse_ctx *ctx)β the callback, bestie. she's defined at line 48 ofruleset.c. note that she takes aconst struct nftnl_parse_ctx *ctxand hands you back anintβ¨struct nftnl_chain* nftnl_parse_ctx::chainβ a pointer to astruct nftnl_chain. defined at line 36 ofruleset.cπenum nftnl_cmd_type nftnl_parse_ctx::cmdβ anenum nftnl_cmd_type, the command. defined at line 32 ofruleset.cπvoid* nftnl_parse_ctx::dataβ avoid *. she's a mystery and that's her main character energy. defined at line 41 ofruleset.cπuint16_t nftnl_parse_ctx::flagsβ auint16_tof flags. defined at line 49 ofruleset.cπuint32_t nftnl_parse_ctx::formatβ auint32_tformat. defined at line 44 ofruleset.cβstruct nftnl_rule* nftnl_parse_ctx::ruleβ a pointer to astruct nftnl_rule. defined at line 37 ofruleset.cπ₯struct nftnl_set* nftnl_parse_ctx::setβ a pointer to astruct nftnl_set. defined at line 38 ofruleset.cπstruct nftnl_set_elem* nftnl_parse_ctx::set_elemβ a pointer to astruct nftnl_set_elem. defined at line 39 ofruleset.cπuint32_t nftnl_parse_ctx::set_idβ auint32_tset id. defined at line 45 ofruleset.cπstruct nftnl_set_list* nftnl_parse_ctx::set_listβ a pointer to astruct nftnl_set_list. defined at line 46 ofruleset.cπ§struct nftnl_table* nftnl_parse_ctx::tableβ a pointer to astruct nftnl_table. defined at line 35 ofruleset.cπΈenum nftnl_ruleset_type nftnl_parse_ctx::typeβ anenum nftnl_ruleset_type, the ruleset type. defined at line 33 ofruleset.cπ
and yes,table,chain,rule,setandset_elemare all chillin' inside that anonymousunionfrom the synopsis β iykyk π«Ά
π Author π
Generated automatically by Doxygen for libnftnl from the source code. so like, no human author to stan, it's the machine's pen π
that's the whole page, babe. this lil manual came to you from libnftnl, Version 1.3.1 and the source line said nftnl_parse_ctx(3) β slay, go forth and parse π β¨π¦
π¦ where this page comes from
- ubuntu resolute: libnftnl-dev-doc 1.3.1-1 Β· GPL-2.0-or-later
- ubuntu stonking: libnftnl-dev-doc 1.3.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms