Partager via


2.2.3.2.1 Client Address - IPv4

The client address data structure is used to transmit the IP address of a client to a proxy or a server. The encoding of the client address for the IPv4 format is as follows.


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

AddressType

ClientAddress

Padding

...

...

AddressType (4 bytes): MUST be set to the value 0 to indicate IPv4 format.

ClientAddress (4 bytes): MUST contain the IPv4 address of the client in little-endian byte order.

Padding (12 bytes): Senders SHOULD set all bytes in this field to the value 0x00. Receivers MUST ignore this field.