RTE_TABLE_ACTION_NAT_CONFIG(3)
π NAME π
rte_table_action_nat_config β bestie, this is the little struct that tells the NAT action how to do its thing β¨
It lives in the DPDK Library Functions Manual, and no cap, it's exactly what you need when you're setting up network address translation and you want it configured your way π
β¨ SYNOPSIS β¨
#include <rte_table_action.h>
π Data Fields π
int source_natuint8_t proto
πΈ DETAILED DESCRIPTION πΈ
This is the RTE_TABLE_ACTION_NAT NAT action configuration β and the important bit? It's per table action profile, okay? So every profile gets its own vibe π«Ά
It's defined at line 576 of the file rte_table_action.h. Yes, literally right there. Go look π
π FIELD DOCUMENTATION π
int source_nat
Okay so this one is basically a switch and it matters π₯
- When it's non-zero, the IP source address and the L4 protocol source port get translated.
- When it's zero, it's the IP destination address and the L4 protocol destination port that get translated instead.
So likeβ¦ source vs destination. Pick your fighter β
Definition at line 581 of file rte_table_action.h.
uint8_t proto
This is your Layer 4 protocol, bestie β for example TCP (0x06) or UDP (0x11) π
Why does it even matter? Because every layer 4 protocol computes the checksum field differently and drops it at a different header offset. So yeah, the proto you name here is not decoration β the math literally depends on it π
Definition at line 587 of file rte_table_action.h.
π¦ AUTHOR π¦
Generated automatically by Doxygen for DPDK from the source code. Not a human typing this out with vibes β a machine did it. Iconic behaviour, honestly π
And that's the whole page, bestie π it's DPDK Version 25.11.3, straight from the Library Functions Manual, mwah π go translate some addresses, you've got this π¦π
π¦ 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