ESP(3)
πΈ NAME πΈ
rte_swx_ipsec_sa_encap_params β bestie, this is the struct that holds all your IPsec encapsulation params, and she's lowkey the blueprint for how your packets get wrapped up before they head out into the wild π
β¨ SYNOPSIS β¨
#include <rte_swx_ipsec.h>
π Data Fields
struct {
uint32_t spi
} esp
int tunnel_mode
int tunnel_ipv4
union {
struct {
struct in_addr src_addr
struct in_addr dst_addr
} ipv4
struct {
struct rte_ipv6_addr src_addr
struct rte_ipv6_addr dst_addr
} ipv6
} tunnel
π¦ DETAILED DESCRIPTION π¦
Okay so real talk: this is the IPsec protocol encapsulation parameters. That's the whole vibe. She's defined at line 225 of file rte_swx_ipsec.h, and she's giving "small struct, huge responsibilities" energy fr fr.
π FIELD DOCUMENTATION π
π uint32_t spi
The Security Parameters Index (SPI) field. Yes queen, this is the identifier that says which security association your packet belongs to π₯
Defined at line 229 of file rte_swx_ipsec.h.
π struct { ... } esp
The Encapsulating Security Payload (ESP) header. That's the wrapper that carries all the encrypted goodness inside, no cap β¨
π int tunnel_mode
Okay so here's the drama: it's tunnel mode when non-zero, and transport mode when zero. That's it, that's the whole switch π
Defined at line 233 of file rte_swx_ipsec.h.
π int tunnel_ipv4
Tunnel type: non-zero for IPv4, zero for IPv6. And heads up bestie β this one's valid for tunnel mode only, so don't come at her in transport mode, she will not respond π
Defined at line 236 of file rte_swx_ipsec.h.
π struct in_addr src_addr
Source address. Where it's coming from π
Defined at line 243 of file rte_swx_ipsec.h.
π struct in_addr dst_addr
Destination address. Where it's going π«Ά
Defined at line 246 of file rte_swx_ipsec.h.
π struct { ... } ipv4
The IPv4 header. That's her whole personality in the tunnel union π
π struct rte_ipv6_addr src_addr
Source address β the IPv6 edition. Same idea, bigger address, main character energy β
Defined at line 252 of file rte_swx_ipsec.h.
π struct rte_ipv6_addr dst_addr
Destination address β the IPv6 edition. Where the packet's headed, v6 flavored πΈ
Defined at line 255 of file rte_swx_ipsec.h.
π struct { ... } ipv6
The IPv6 header. She ate, honestly π
π union { ... } tunnel
Tunnel parameters. And one more time for the people in the back: valid for tunnel mode only π
π§ AUTHOR π§
Generated automatically by Doxygen for DPDK from the source code. So nobody hand-wrote this β the robot did it, and honestly she served π
ngl bestie, this page is auto-generated, so if something's weird, blame Doxygen, not me π
And that's the whole thing! Signing off from DPDK, Version 26.03.0 β this doc was literally generated for rte_swx_ip...ncap_params(3), so go forth and encapsulate, icon π¦π
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms