nftnl_rule_list_iter(3)

✨ NAME ✨

nftnl_rule_list_iter β€” bestie, this is the little iterator struct from the libnftnl manual, section 3 (library functions), and it's lowkey just two fields holding your place while you walk a rule list πŸ’–


🌸 SYNOPSIS 🌸

πŸŽ€ Data Fields

  • const struct nftnl_rule_list * list
  • struct nftnl_rule * cur

πŸ¦‹ Detailed Description πŸ¦‹

Okay so this whole thing lives at Definition at line 783 of file rule.c. That's it, that's the lore. It's the struct you keep around so you know which list you're iterating and which rule you're currently on, no cap 🫢


πŸ’… Field Documentation πŸ’…

πŸ’œ struct nftnl_rule* nftnl_rule_list_iter::cur

Definition at line 785 of file rule.c.

This is the field that holds the current rule, i.e. the one you're looking at right now in the walk. It's giving bookmark energy, fr fr ✨

🌈 const struct nftnl_rule_list* nftnl_rule_list_iter::list

Definition at line 784 of file rule.c.

And this one is the list itself β€” the const struct nftnl_rule_list * you're iterating over. It's the main character of the operation, periodt πŸ‘‘


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libnftnl from the source code.


Not me finishing a whole manpage and it's literally just two fields 😭 but like, the right two fields.

That's the whole vibe, bestie β€” slay πŸ’–βœ¨

This was libnftnl, Version 1.3.1, and yeah the manual page is literally named nftnl_rule_list_iter(3) too πŸŽ€ Stay hydrated, go iterate something, mwah πŸ’…πŸ¦‹

πŸ“¦ where this page comes from