nftnl_chain(3)
π nftnl_chain π
okay bestie, gather round, because we're talking about nftnl_chain(3) from the Library Functions Manual and honestly? it's giving struct with main character energy. π
β¨ NAME β¨
nftnl_chain β the struct that holds literally everything you ever wanted to know about a netfilter chain, no cap π
πΈ SYNOPSIS πΈ
π¦ Data Fields
struct list_head head
struct hlist_node hnode
const char * name
const char * type
const char * table
const char * dev
struct nftnl_str_array dev_array
uint32_t family
uint32_t policy
uint32_t hooknum
int32_t prio
uint32_t chain_flags
uint32_t use
uint64_t packets
uint64_t bytes
uint64_t handle
uint32_t flags
uint32_t chain_id
struct {
void * data
uint32_t len
} user
struct list_head rule_list
look at her. twenty fields. she's booked and busy fr fr πβ¨
π DESCRIPTION π
π«Ά Detailed Description
so like, this is the definition of the struct, and it lives at Definition at line 28 of file chain.c. periodt. that's where the whole thing starts, bestie β line 28, chain.c, iconic behavior.
every single one of these fields has its own little home in that file and we're gonna go through all of them because we do not skip. we never skip. π
π FIELD DOCUMENTATION π
π uint64_t nftnl_chain::bytes
Definition at line 44 of file chain.c.
π uint32_t nftnl_chain::chain_flags
Definition at line 41 of file chain.c.
π uint32_t nftnl_chain::chain_id
Definition at line 47 of file chain.c.
π void* nftnl_chain::data
Definition at line 50 of file chain.c.
quick note bestie: this one's thedatahalf of the anonymoususerstruct β thelenhalf is right down below. they're a package deal, iykyk π
π const char* nftnl_chain::dev
Definition at line 35 of file chain.c.
π struct nftnl_str_array nftnl_chain::dev_array
Definition at line 36 of file chain.c.
π uint32_t nftnl_chain::family
Definition at line 37 of file chain.c.
π uint32_t nftnl_chain::flags
Definition at line 46 of file chain.c.
π uint64_t nftnl_chain::handle
Definition at line 45 of file chain.c.
π struct list_head nftnl_chain::head
Definition at line 29 of file chain.c.
π struct hlist_node nftnl_chain::hnode
Definition at line 30 of file chain.c.
π uint32_t nftnl_chain::hooknum
Definition at line 39 of file chain.c.
π uint32_t nftnl_chain::len
Definition at line 51 of file chain.c.
this is thelenthat lives inside the anonymoususerstruct withdataup above π two little besties, one anonymous struct, so cute π₯Ή
π const char* nftnl_chain::name
Definition at line 32 of file chain.c.
π uint64_t nftnl_chain::packets
Definition at line 43 of file chain.c.
π uint32_t nftnl_chain::policy
Definition at line 38 of file chain.c.
π int32_t nftnl_chain::prio
Definition at line 40 of file chain.c.
π struct list_head nftnl_chain::rule_list
Definition at line 54 of file chain.c.
π const char* nftnl_chain::table
Definition at line 34 of file chain.c.
π const char* nftnl_chain::type
Definition at line 33 of file chain.c.
π uint32_t nftnl_chain::use
Definition at line 42 of file chain.c.
π AUTHOR π
Generated automatically by Doxygen for libnftnl from the source code. yes, a robot wrote this and honestly? she ate. π€π
and that's the whole page bestie!! πβ¨ this was nftnl_chain(3) from the Library Functions Manual, brought to you by libnftnl, Version 1.3.1 β go forth and chain responsibly, mwah ππ¦πΈπ«Ά no cap, ily, bye!! ππβ
π¦ 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