|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
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. | |
Parameters to define an iptable rule.
Used with table rule management APIs to specify matching criteria, input/output interfaces, protocols, and timeout values.
| uint8_t net_iptable_rule_params::dst[NET_IPV4_ADDR_SIZE] |
Destination IPv4 address.
| uint8_t net_iptable_rule_params::dst_mask[NET_IPV4_ADDR_SIZE] |
Destination IPv4 mask.
| int net_iptable_rule_params::input_iface_idx |
Input interface index.
| int net_iptable_rule_params::output_iface_idx |
Output interface index.
| uint8_t net_iptable_rule_params::priority |
Rule's match priority (higher value is higher priority).
| enum net_ip_protocol net_iptable_rule_params::proto |
Protocol number (e.g., IPPROTO_TCP, IPPROTO_UDP).
| int net_iptable_rule_params::reply_timeout |
Replied timeout in seconds; 0: use default, -1: never expires.
| uint8_t net_iptable_rule_params::src[NET_IPV4_ADDR_SIZE] |
Source IPv4 address.
| uint8_t net_iptable_rule_params::src_mask[NET_IPV4_ADDR_SIZE] |
Source IPv4 mask.
| int net_iptable_rule_params::unreply_timeout |
Unreplied timeout in seconds; 0: use default, -1: never expires.