2.2.1.2.199 IP_NAT_PORT_MAPPING
The IP_NAT_PORT_MAPPING structure holds a static mapping that ties a public-side port on this NAT interface to a specific private machine's address or port. In the case of an interface with a pool of addresses, the "PublicAddress" specifies which of those addresses this static mapping applies to.
-
typedef struct _IP_NAT_PORT_MAPPING { UCHAR Protocol; USHORT PublicPort; ULONG PublicAddress; USHORT PrivatePort; ULONG PrivateAddress; } IP_NAT_PORT_MAPPING, *PIP_NAT_PORT_MAPPING;
Protocol: Specifies the protocol used for data reception and transmission.
PublicPort: Specifies the destination port number of incoming public traffic.
PublicAddress: Specifies the public IPv4 address.
PrivatePort: The destination port number of the private traffic.
PrivateAddress: Specifies the private IPv4 address.