nftnl_expr_nat(3)

πŸ’– nftnl_expr_nat β€” bestie's guide to the NAT expression struct πŸ’–

okay so this is the manual for nftnl_expr_nat(3), a libnftnl page, and ngl it's giving ✨auto-generated reference material✨ energy, but we're gonna make it cute and actually make sense. it's a struct, it's for NAT, and it lives in the source file nat.c. that's the whole vibe. let's get into it πŸ¦‹


🌸 NAME 🌸

nftnl_expr_nat β€” literally just the name of the struct, that's it, that's the whole name section, iconic minimalism πŸ’…


✨ SYNOPSIS ✨

πŸŽ€ Data Fields

okay so here's the whole squad of fields. every single one, no cap:

enum nft_registers sreg_addr_min
enum nft_registers sreg_addr_max
enum nft_registers sreg_proto_min
enum nft_registers sreg_proto_max
int family
enum nft_nat_types type
uint32_t flags

look at her. seven fields, all accounted for, all slaying in their own way πŸ‘‘


🫢 Detailed Description 🫢

Definition at line 23 of file nat.c.

that's it bestie, that's the entire detailed description. the Doxygen girlies really said "here's the line number, good luck, bye" 😭

πŸ’œ Field Documentation πŸ’œ

okay now we go field by field, and yes, the line numbers are staying because they're ✨canon✨

🌈 int nftnl_expr_nat::family

Definition at line 28 of file nat.c.

the family field. it's an int. it's at line 28. periodt πŸ’«

🌈 uint32_t nftnl_expr_nat::flags

Definition at line 30 of file nat.c.

flags!! as a uint32_t, repping line 30 of nat.c. we love a bitfield moment πŸŽ€

🌈 enum nft_registers nftnl_expr_nat::sreg_addr_max

Definition at line 25 of file nat.c.

the max address source register. line 25. she's the upper bound of the address situation, iykyk πŸ’…

🌈 enum nft_registers nftnl_expr_nat::sreg_addr_min

Definition at line 24 of file nat.c.

the min address source register, line 24, right above her sister. the way they're paired... obsessed πŸ’–

🌈 enum nft_registers nftnl_expr_nat::sreg_proto_max

Definition at line 27 of file nat.c.

protocol register, max edition. line 27 of nat.c. she's giving upper-bound protocol energy ✨

🌈 enum nft_registers nftnl_expr_nat::sreg_proto_min

Definition at line 26 of file nat.c.

protocol register, min edition, line 26, right before the max one. the symmetry? unmatched πŸ¦‹

🌈 enum nft_nat_types nftnl_expr_nat::type

Definition at line 29 of file nat.c.

the type field, typed as enum nft_nat_types, chillin' at line 29 of nat.c. she's literally the moment, the whole point of a NAT expression fr fr 🌸


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libnftnl from the source code.

not me getting emotional over a robot writing documentation πŸ’€ but yeah, Doxygen did this, not a human, so if the prose feels a little dry that's why β€” blame the generator, not the girlies 🧚

πŸ’Œ SEE ALSO

no SEE ALSO section on this one bestie, this page is self-contained, she's an independent woman 😌


and that's the whole page!! go forth and NAT responsibly, mwah 🫢

this has been libnftnl Version 1.3.1, brought to you by the fine people who ship nftnl_expr_nat(3) β€” stay slay, stay hydrated, and remember: the line numbers never lie πŸ’–βœ¨

πŸ“¦ where this page comes from