Compartir a través de


2.2.1.2.184 IP_NAT_SESSION_MAPPING

The IP_NAT_SESSION_MAPPING structure holds information for a single NAT mapping and is part of IP_NAT_ENUMERATE_SESSION_MAPPINGS (section 2.2.1.2.183).

 typedef struct _IP_NAT_SESSION_MAPPING {
   UCHAR Protocol;
   ULONG PrivateAddress;
   USHORT PrivatePort;
   ULONG PublicAddress;
   USHORT PublicPort;
   ULONG RemoteAddress;
   USHORT RemotePort;
   IP_NAT_DIRECTION Direction;
   ULONG IdleTime;
 } IP_NAT_SESSION_MAPPING,
  *PIP_NAT_SESSION_MAPPING;

Protocol: This MUST be one of the following.

Value

Meaning

NAT_PROTOCOL_ICMP

0x01

ICMP Protocol

NAT_PROTOCOL_IGMP

0x02

IGMP Protocol

NAT_PROTOCOL_TCP

0x06

TCP Protocol

NAT_PROTOCOL_UDP

0x11

UDP Protocol

NAT_PROTOCOL_IP6IN4

0x29

IPv6 in IPv4

NAT_PROTOCOL_PPTP

0x2F

PPTP Protocol

NAT_PROTOCOL_IPSEC_ESP

0x32

IPSec ESP

NAT_PROTOCOL_IPSEC_AH

0x33

IPSec AH

NAT_PROTOCOL_PGM

0x71

PGM

PrivateAddress: The private address of the NAT entry.

PrivatePort: The private port of the NAT entry.

PublicAddress: The public address of the NAT entry.

PublicPort: The public port of the NAT entry

RemoteAddress: The remote address of the NAT entry.

RemotePort: The remote port of the NAT entry.

Direction: This MUST be IP_NAT_DIRECTION.

IdleTime: The time, in seconds, since the last packet matching this entry was sent or received.