---
name: "rte_flow_action_conntrack"
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_flow_action_conntrack"
---

# rte\_flow\_action\_conntrack(3)

## NAME

rte\_flow\_action\_conntrack

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

uint16\_t **peer\_port**\
 uint32\_t **is\_original\_dir**:1\
 uint32\_t **enable**:1\
 uint32\_t **live\_connection**:1\
 uint32\_t **selective\_ack**:1\
 uint32\_t **challenge\_ack\_passed**:1\
 uint32\_t **last\_direction**:1\
 uint32\_t **liberal\_mode**:1\
 enum **rte\_flow\_conntrack\_state** **state**\
 uint8\_t **max\_ack\_window**\
 uint8\_t **retransmission\_limit**\
 struct **rte\_flow\_tcp\_dir\_param** **original\_dir**\
 struct **rte\_flow\_tcp\_dir\_param** **reply\_dir**\
 uint16\_t **last\_window**\
 uint32\_t **last\_seq**\
 uint32\_t **last\_ack**\
 uint32\_t **last\_end**\

## Detailed Description

**Warning**

**EXPERIMENTAL:** this structure may change without prior notice

RTE\_FLOW\_ACTION\_TYPE\_CONNTRACK

Configuration and initial state for the connection tracking module. This structure could be used for both setting and query. All fields should be in host byte order.

Definition at line **4027** of file **rte\_flow.h**.

## Field Documentation

### uint16\_t peer\_port

The peer port number, can be the same port.

Definition at line **4029** of file **rte\_flow.h**.

### uint32\_t is\_original\_dir

Direction of this connection when creating a flow rule, the value only affects the creation of subsequent flow rules.

Definition at line **4034** of file **rte\_flow.h**.

### uint32\_t enable

Enable / disable the conntrack HW module. When disabled, the result will always be RTE\_FLOW\_CONNTRACK\_FLAG\_DISABLED. In this state the HW will act as passthrough. It only affects this conntrack object in the HW without any effect to the other objects.

Definition at line **4042** of file **rte\_flow.h**.

### uint32\_t live\_connection

At least one ack was seen after the connection was established.

Definition at line **4044** of file **rte\_flow.h**.

### uint32\_t selective\_ack

Enable selective ACK on this connection.

Definition at line **4046** of file **rte\_flow.h**.

### uint32\_t challenge\_ack\_passed

A challenge ack has passed.

Definition at line **4048** of file **rte\_flow.h**.

### uint32\_t last\_direction

1: The last packet is seen from the original direction. 0: The last packet is seen from the reply direction.

Definition at line **4053** of file **rte\_flow.h**.

### uint32\_t liberal\_mode

No TCP check will be done except the state change.

Definition at line **4055** of file **rte\_flow.h**.

### enum rte\_flow\_conntrack\_state state

The current state of this connection.

Definition at line **4057** of file **rte\_flow.h**.

### uint8\_t max\_ack\_window

Scaling factor for maximal allowed ACK window.

Definition at line **4059** of file **rte\_flow.h**.

### uint8\_t retransmission\_limit

Maximal allowed number of retransmission times.

Definition at line **4061** of file **rte\_flow.h**.

### struct rte\_flow\_tcp\_dir\_param original\_dir

TCP parameters of the original direction.

Definition at line **4063** of file **rte\_flow.h**.

### struct rte\_flow\_tcp\_dir\_param reply\_dir

TCP parameters of the reply direction.

Definition at line **4065** of file **rte\_flow.h**.

### uint16\_t last\_window

The window value of the last packet passed this conntrack.

Definition at line **4067** of file **rte\_flow.h**.

### uint32\_t last\_seq

The sequence of the last packet passed this conntrack.

Definition at line **4070** of file **rte\_flow.h**.

### uint32\_t last\_ack

The acknowledgment of the last packet passed this conntrack.

Definition at line **4072** of file **rte\_flow.h**.

### uint32\_t last\_end

The total value ACK + payload length of the last packet passed this conntrack.

Definition at line **4077** of file **rte\_flow.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
