NatPortFwdRule Struct Reference

Port redirection rule. More...

#include <nat.h>

Data Fields

Ipv4Protocol protocol
 Transport protocol (TCP or UDP) More...
 
uint16_t publicPortMin
 Public port range to be redirected (lower value) More...
 
uint16_t publicPortMax
 Public port range to be redirected (upper value) More...
 
NetInterfaceprivateInterface
 Destination interface. More...
 
Ipv4Addr privateIpAddr
 Destination IP address. More...
 
uint16_t privatePortMin
 Destination port (lower value) More...
 
uint16_t privatePortMax
 Destination port (upper value) More...
 

Detailed Description

Port redirection rule.

Definition at line 138 of file nat.h.

Field Documentation

◆ privateInterface

NetInterface* privateInterface

Destination interface.

Definition at line 143 of file nat.h.

◆ privateIpAddr

Ipv4Addr privateIpAddr

Destination IP address.

Definition at line 144 of file nat.h.

◆ privatePortMax

uint16_t privatePortMax

Destination port (upper value)

Definition at line 146 of file nat.h.

◆ privatePortMin

uint16_t privatePortMin

Destination port (lower value)

Definition at line 145 of file nat.h.

◆ protocol

Ipv4Protocol protocol

Transport protocol (TCP or UDP)

Definition at line 140 of file nat.h.

◆ publicPortMax

uint16_t publicPortMax

Public port range to be redirected (upper value)

Definition at line 142 of file nat.h.

◆ publicPortMin

uint16_t publicPortMin

Public port range to be redirected (lower value)

Definition at line 141 of file nat.h.


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