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
- 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