Dans cet exercice, on se propose de décoder un en-tête IPv6 comme dans l'activité précédente 210_format_entete_ipv6
60 00 00 00 04 7E 2B 1A 20 01 0D B8 AB D0 00 0F 00 00 00 00 FF 01 00 01 20 01 0D B8 00 78 02 34 DC 20 8E EB 23 42 52 DF 06 04 00 01 00 00 00 00 20 01 0D B8 00 78 00 01 00 00 00 00 00 00 00 01 20 01 0D B8 00 82 02 03 00 00 00 00 00 00 03 85 00 14 00 50 00 00 00 00 00 00 00 00 50 02 20 00 83 20 00 00
Version:
Traffic Class:
Flow Label:
Payload length:
Next Header:
Hop Limit:
IP source:
IP destination:
Début de l'extension Routing
Le RFC 2460 https://www.rfc-editor.org/rfc/rfc2460.txt, section 4.4, décrit l’en-tête Routing. Ci-dessous un extrait du RFC:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Next Header | Hdr Ext Len | Routing Type | Segments Left |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
. .
. type-specific data .
. .
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Next Header 8-bit selector. Identifies the type of header
immediately following the Routing header. Uses
the same values as the IPv4 Protocol field
[RFC-1700 et seq.].
Hdr Ext Len 8-bit unsigned integer. Length of the Routing
header in 8-octet units, not including the first
8 octets.
Routing Type 8-bit identifier of a particular Routing header
variant.
Segments Left 8-bit unsigned integer. Number of route
segments remaining, i.e., number of explicitly
listed intermediate nodes still to be visited
before reaching the final destination.
type-specific data Variable-length field, of format determined by
the Routing Type, and of length such that the
complete Routing header is an integer multiple
of 8 octets long.
Next Header:
Hdr Ext Len:
Routing Type:
Segments Left:
Le reste de l'en-tete contient deux adresses IPv6 (les adresses des nœuds désignés par la source).