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 the data half of the anonymous user struct β€” the len half 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 the len that lives inside the anonymous user struct with data up 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