def read_ipv6_route(self, length, extension):
if length is None:<EOL><INDENT>length = len(self)<EOL><DEDENT>_next = self._read_protos(<NUM_LIT:1>)<EOL>_hlen = self._read_unpack(<NUM_LIT:1>)<EOL>_type = self._read_unpack(<NUM_LIT:1>)<EOL>_left = self._read_unpack(<NUM_LIT:1>)<EOL>ipv6_route = dict(<EOL>next=_next,<EOL>length=(_hlen + <NUM_LIT:1>) * <NUM_LIT:8>,<EOL>type=_ROUTING_TYPE.get(_type, '<STR_LIT>'),<EOL>seg_left=_left,<EOL>)<EOL>_dlen = _hlen * <NUM_LIT:8> - <NUM_LIT:4><EOL>if _dlen:<EOL><INDENT>_func = _ROUTE_PROC.get(_type, '<STR_LIT:none>')<EOL>_data = eval(f'<STR_LIT>')(_dlen)<EOL>ipv6_route.update(_data)<EOL><DEDENT>length -= ipv6_route['<STR_LIT>']<EOL>ipv6_route['<STR_LIT>'] = self._read_packet(header=ipv6_route['<STR_LIT>'], payload=length)<EOL>if extension:<EOL><INDENT>self._protos = None<EOL>return ipv6_route<EOL><DEDENT>return self._decode_next_layer(ipv6_route, _next, length)<EOL>
Read Routing Header for IPv6.

        Structure of IPv6-Route header [RFC 8200][RFC 5095]:
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |  Next Header  |  Hdr Ext Len  |  Routing Type | Segments Left |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |                                                               |
            .                                                               .
            .                       type-specific data                      .
            .                                                               .
            |                                                               |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

            Octets      Bits        Name                    Description
              0           0     route.next              Next Header
              1           8     route.length            Header Extensive Length
              2          16     route.type              Routing Type
              3          24     route.seg_left          Segments Left
              4          32     route.data              Type-Specific Data