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_version
  • union { uint32_t ipv4; struct rte_ipv6_addr ipv6; } addr
  • uint16_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: addr is a union, so ipv4 and ipv6 are sharing the same space β€” you pick one based on ip_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