RTE_TABLE_ACTION_NAT_PARAMS(3)
β¨ rte_table_action_nat_params β¨
okay bestie, gather round, because today we're learning about rte_table_action_nat_params β yes that's the whole name, it's giving "my parents let me pick my own name and I panicked" energy but we love her anyway π. She lives in the rte_table_action.h header (well, in the Library Functions Manual family, iykyk) and she's here to hold your NAT action parameters, one set per table rule. no cap.
π SYNOPSIS π
#include <rte_table_action.h>
πΈ DETAILED DESCRIPTION πΈ
so basically rte_table_action_nat_params is the struct that carries your NAT action parameters β and fr fr, it's per table rule. like, every rule gets to have its own lil NAT moment. main character energy only π
fun fact for the lore girlies: it's defined at line 591 of the file rte_table_action.h. iconic, we stan a documented line number π«Ά
π¦ Data Fields π¦
the fields, in order, no skipping:
int ip_versionunion { uint32_t ipv4; struct rte_ipv6_addr ipv6; } addruint16_t port
π FIELD DOCUMENTATION π
β int ip_version
which IP version addr is repping β non-zero means IPv4, zero means IPv6. that's it, that's the whole vibe check π
defined at line 593 of rte_table_action.h.
β uint32_t ipv4
the IPv4 address. but listen β she's only valid when ip_version is non-zero. so don't be out here reading her when your ip_version is 0, that's not her era bestie π
defined at line 598 of rte_table_action.h.
β struct rte_ipv6_addr ipv6
the IPv6 address. and this one is only valid when ip_version is set to 0. same rule, other twin πΈ
defined at line 601 of rte_table_action.h.
β union { ... } addr
it's the IP address. that's the whole description. short, sweet, unbothered, moisturized, in her lane π
β uint16_t port
the port. yep. that's it. she said what she said π
defined at line 605 of rte_table_action.h.
quick reminder bestie:addris aunion, soipv4andipv6are sharing the same space β you pick one based onip_version, you don't get both. don't come for me, that's literally what the manpage says π
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. yes, a robot wrote this, and honestly? she ate. periodt. π€π
and that's the whole page, bestie!! this one came straight out of the DPDK Version 25.11.3 era, so if you're running literally any other version, go check your own local docs before you @ me π. mwah, go read your headers, ily π«Άπβ¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms