ESP(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

🌸 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