Partager via


2.2.1.2.4.2 IPv6 Address Structure

The IPv6 Address structure specifies the format of an IPv6 socket address. This structure is built as if on a little-endian machine and is treated as a byte array.


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

AddressFamily

Port

FlowInfo

Address (16 bytes)

...

...

ScopeID

AddressFamily (2 bytes): Address family; MUST be 0x0017.

Port (2 bytes): An IP port number.

FlowInfo (4 bytes): Flow information. This field is not used by the protocol. The field MUST be set to zero and MUST be ignored on receipt.

Address (16 bytes): An IP address, as specified in [RFC3493].

ScopeID (4 bytes): A set of interfaces for a scope, as specified in [RFC3493].