Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_iptable_rule_params Struct Reference

Parameters to define an iptable rule. More...

#include <zephyr/net/ipv4_nat.h>

Data Fields

int input_iface_idx
 Input interface index.
int output_iface_idx
 Output interface index.
uint8_t src [NET_IPV4_ADDR_SIZE]
 Source IPv4 address.
uint8_t src_mask [NET_IPV4_ADDR_SIZE]
 Source IPv4 mask.
uint8_t dst [NET_IPV4_ADDR_SIZE]
 Destination IPv4 address.
uint8_t dst_mask [NET_IPV4_ADDR_SIZE]
 Destination IPv4 mask.
enum net_ip_protocol proto
 Protocol number (e.g., IPPROTO_TCP, IPPROTO_UDP).
uint8_t priority
 Rule's match priority (higher value is higher priority).
int unreply_timeout
 Unreplied timeout in seconds; 0: use default, -1: never expires.
int reply_timeout
 Replied timeout in seconds; 0: use default, -1: never expires.

Detailed Description

Parameters to define an iptable rule.

Used with table rule management APIs to specify matching criteria, input/output interfaces, protocols, and timeout values.

Field Documentation

◆ dst

uint8_t net_iptable_rule_params::dst[NET_IPV4_ADDR_SIZE]

Destination IPv4 address.

◆ dst_mask

uint8_t net_iptable_rule_params::dst_mask[NET_IPV4_ADDR_SIZE]

Destination IPv4 mask.

◆ input_iface_idx

int net_iptable_rule_params::input_iface_idx

Input interface index.

◆ output_iface_idx

int net_iptable_rule_params::output_iface_idx

Output interface index.

◆ priority

uint8_t net_iptable_rule_params::priority

Rule's match priority (higher value is higher priority).

◆ proto

enum net_ip_protocol net_iptable_rule_params::proto

Protocol number (e.g., IPPROTO_TCP, IPPROTO_UDP).

◆ reply_timeout

int net_iptable_rule_params::reply_timeout

Replied timeout in seconds; 0: use default, -1: never expires.

◆ src

uint8_t net_iptable_rule_params::src[NET_IPV4_ADDR_SIZE]

Source IPv4 address.

◆ src_mask

uint8_t net_iptable_rule_params::src_mask[NET_IPV4_ADDR_SIZE]

Source IPv4 mask.

◆ unreply_timeout

int net_iptable_rule_params::unreply_timeout

Unreplied timeout in seconds; 0: use default, -1: never expires.


The documentation for this struct was generated from the following file: