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 of ruleset.c. note that she takes a const struct nftnl_parse_ctx *ctx and hands you back an int ✨
  • struct nftnl_chain* nftnl_parse_ctx::chain β€” a pointer to a struct nftnl_chain. defined at line 36 of ruleset.c πŸ’œ
  • enum nftnl_cmd_type nftnl_parse_ctx::cmd β€” an enum nftnl_cmd_type, the command. defined at line 32 of ruleset.c πŸ‘‘
  • void* nftnl_parse_ctx::data β€” a void *. she's a mystery and that's her main character energy. defined at line 41 of ruleset.c πŸ™ˆ
  • uint16_t nftnl_parse_ctx::flags β€” a uint16_t of flags. defined at line 49 of ruleset.c πŸŽ€
  • uint32_t nftnl_parse_ctx::format β€” a uint32_t format. defined at line 44 of ruleset.c ⭐
  • struct nftnl_rule* nftnl_parse_ctx::rule β€” a pointer to a struct nftnl_rule. defined at line 37 of ruleset.c πŸ”₯
  • struct nftnl_set* nftnl_parse_ctx::set β€” a pointer to a struct nftnl_set. defined at line 38 of ruleset.c 🌈
  • struct nftnl_set_elem* nftnl_parse_ctx::set_elem β€” a pointer to a struct nftnl_set_elem. defined at line 39 of ruleset.c πŸ“
  • uint32_t nftnl_parse_ctx::set_id β€” a uint32_t set id. defined at line 45 of ruleset.c πŸ’–
  • struct nftnl_set_list* nftnl_parse_ctx::set_list β€” a pointer to a struct nftnl_set_list. defined at line 46 of ruleset.c 🧚
  • struct nftnl_table* nftnl_parse_ctx::table β€” a pointer to a struct nftnl_table. defined at line 35 of ruleset.c 🌸
  • enum nftnl_ruleset_type nftnl_parse_ctx::type β€” an enum nftnl_ruleset_type, the ruleset type. defined at line 33 of ruleset.c πŸ’…
and yes, table, chain, rule, set and set_elem are all chillin' inside that anonymous union from 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