---
name: "rte_swx_ipsec_sa_encap_params"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_swx_ipsec_sa_encap_params"
---

# rte\_swx\_ipsec\_sa\_encap\_params(3)

## NAME

rte\_swx\_ipsec\_sa\_encap\_params

## 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

IPsec protocol encapsulation parameters.

Definition at line **225** of file **rte\_swx\_ipsec.h**.

## Field Documentation

### uint32\_t spi

Security Parameters Index (SPI) field.

Definition at line **229** of file **rte\_swx\_ipsec.h**.

### struct { ... } esp

Encapsulating Security Payload (ESP) header.

### int tunnel\_mode

Tunnel mode when non-zero, transport mode when zero.

Definition at line **233** of file **rte\_swx\_ipsec.h**.

### int tunnel\_ipv4

Tunnel type: Non-zero for IPv4, zero for IPv6. Valid for tunnel mode only.

Definition at line **236** of file **rte\_swx\_ipsec.h**.

### struct in\_addr src\_addr

Source address.

Definition at line **243** of file **rte\_swx\_ipsec.h**.

### struct in\_addr dst\_addr

Destination address.

Definition at line **246** of file **rte\_swx\_ipsec.h**.

### struct { ... } ipv4

IPv4 header.

### struct rte\_ipv6\_addr src\_addr

Source address.

Definition at line **252** of file **rte\_swx\_ipsec.h**.

### struct rte\_ipv6\_addr dst\_addr

Destination address.

Definition at line **255** of file **rte\_swx\_ipsec.h**.

### struct { ... } ipv6

IPv6 header.

### union { ... } tunnel

Tunnel parameters. Valid for tunnel mode only.

## Author

Generated automatically by Doxygen for DPDK from the source code.
