Searched refs:datagram_offset (Results 1 – 2 of 2) sorted by relevance
/external/openthread/tests/scripts/thread-cert/ |
D | lowpan.py | 885 def __init__(self, datagram_size, datagram_tag, datagram_offset=0): argument 888 self._datagram_offset = datagram_offset 899 def datagram_offset(self): member in LowpanFragmentationHeader 904 return self.datagram_offset == 0 913 datagram_offset = 0 916 datagram_offset = ord(data.read(1)) 918 return cls(datagram_size, datagram_tag, datagram_offset) 1072 offset = fragmentation_header.datagram_offset * 8
|
D | test_lowpan.py | 3317 datagram_offset = any_datagram_offset() 3320 datagram_offset) 3323 actual_datagram_offset = fragmentation_header.datagram_offset 3326 self.assertEqual(datagram_offset, actual_datagram_offset) 3330 datagram_offset = random.randint(1, (1 << 8) - 1) 3333 datagram_offset) 3345 datagram_offset = any_datagram_offset() 3347 …data = struct.pack(">HHB", ((3 << 14) | (int(datagram_offset != 0) << 13) | datagram_size), datagr… 3348 datagram_offset) 3356 self.assertEqual(datagram_offset, fragmentation_header.datagram_offset)
|