- Since
- 4.5
- Version
- 0.1.0
This header defines the data structures and APIs used for IPv4 NAT (Network Address Translation) and rule-based iptable manipulation in the Zephyr networking subsystem.
◆ net_ipv4_nat_init()
| void net_ipv4_nat_init |
( |
void | | ) |
|
#include <ipv4_nat.h>
Initialize IPv4 NAT subsystem.
Prepares internal NAT state for operation.
◆ net_ipv4_table_rule_add()
#include <ipv4_nat.h>
Add a new iptable rule.
- Parameters
-
| param | Rule configuration and match criteria. |
- Returns
- Non-negative rule index on success, negative code on error.
◆ net_ipv4_table_rule_del()
| void net_ipv4_table_rule_del |
( |
int | idx | ) |
|
#include <ipv4_nat.h>
Remove an iptable rule by index.
- Parameters
-
| idx | Index of the rule to remove. |