2.2.4 NAT_RESOLVER_RESPONSE

The NAT_RESOLVER_RESPONSE is sent to report translated address information to the sender of a previous query.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

bZero

bCommand

wMessageIDEcho

dwSourceIDEcho

dwIPv4Address

wPort

bZero (1 byte): An 8-bit identifier used to distinguish this message from DirectPlay 8 Protocol: Reliable messages to the same UDP port. It MUST be set to 0.

bCommand (1 byte): An 8-bit command code identifying this message as a NAT Resolver Response message. It MUST be set to 0x07, NAT_RESOLVER_RESPONSE_DATA_KIND (NAT Resolver Response message type).

wMessageIDEcho (2 bytes): A 16-bit value used to uniquely identify a response to an individual NAT Resolver Query message. This MUST be set to the value of wMessageID in the query to which this message is a response.

dwSourceIDEcho (4 bytes): A 32-bit value used by the sender to identify the original source to which the NAT resolver response is replying. This MUST be set to the value of dwSourceID in the query to which this message is a response.

dwIPv4Address (4 bytes): A 32-bit value indicating the public IPv4 address of the sender of the NAT resolver query. This value MUST be set to the source IPv4 address of the query UDP packet, in Network Byte Order, modified by using the exclusive-or (XOR) bitwise operation with the value of the dwSourceID query field.

wPort (2 bytes): A 16-bit value indicating the public port number of the sender of the NAT resolver query. This value MUST be set to the source port number of the query UDP packet, in Network Byte Order, modified by using the exclusive-or (XOR) bitwise operation with the value of the wMessageID query field.