Home
last modified time | relevance | path

Searched refs:hdr_ext_len (Results 1 – 2 of 2) sorted by relevance

/external/openthread/tests/scripts/thread-cert/
Dipv6.py161 def __init__(self, next_header, hdr_ext_len=0): argument
163 self.hdr_ext_len = hdr_ext_len
678 def __init__(self, next_header=None, options=None, hdr_ext_len=None): argument
679 super(HopByHop, self).__init__(next_header, hdr_ext_len)
682 if hdr_ext_len is not None:
683 self.hdr_ext_len = hdr_ext_len
686 self.hdr_ext_len = self._calculate_hdr_ext_len(payload_length)
705 data = bytearray([self.next_header, self.hdr_ext_len])
737 return (self.hdr_ext_len + 1) * 8
985 def _calculate_extension_header_length(self, hdr_ext_len): argument
[all …]
Dtest_ipv6.py181 def any_hop_by_hop_payload(next_header, hdr_ext_len, payload): argument
182 return bytearray([next_header, hdr_ext_len]) + payload
796 hdr_ext_len = self._calculate_hdr_ext_len(2 + len(hop_by_hop_option))
804 expected_data = bytearray([next_header, hdr_ext_len]) + hop_by_hop_option.to_bytes()
983 hdr_ext_len = self._calculate_hdr_ext_len(2 + len(hop_by_hop_option))
988 data = bytearray([next_header, hdr_ext_len]) + hop_by_hop_option.to_bytes()
1006 hdr_ext_len = self._calculate_hdr_ext_len(2 + len(hop_by_hop_option))
1010 data = bytes([next_header, hdr_ext_len]) + hop_by_hop_option.to_bytes()