2.2.2.10 Destination Address

This section follows the product behavior as described in product behavior note <11>.

The Destination Address attribute is specified in [IETFDRAFT-TURN-08] section 9.2.5.


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

Attribute Type

Attribute Length

Reserved

Family

Port

IP Address

Attribute Type (2 bytes): The TURN attributes are specified in [IETFDRAFT-STUN-02] section 10.2 and [IETFDRAFT-TURN-08] section 9.2. Set to "0x0011".

Attribute Length (2 bytes): Length of the following fields. Set to "0x0008" (8) for an IPv4 address or "0x0014" (20) for an IPv6 address.

Reserved (1 byte): The first 8 bits are used for alignment purposes and are ignored.

Family (1 byte): The address family of the IP Address. It MUST have the value "0x01" for an IPv4 address or "0x02" for an IPv6 address. If the value is anything other than 0x01 or 0x02, the attribute MUST be silently ignored.

Port (2 bytes): A network byte ordered representation of the mapped port.

IP Address (4 bytes or 16 bytes): The IPv4 or IPv6 destination address.

If the address is IPv4 (Family is set to "0x01") this is the network byte ordered 32-bit (4 byte) IPv4 address.

If the address is IPv6 (Family is set to "0x02") this is the network byte ordered 128-bit (16 byte) IPv6 address.