Lines Matching refs:first_byte
1011 def _is_mesh_header(self, first_byte): argument
1012 return ((first_byte >> 6) & 0x03) == 0x02
1014 def _is_first_fragmentation_header(self, first_byte): argument
1015 return ((first_byte >> 3) & 0x1F) == 0x18
1017 def _is_subsequent_fragmentation_header(self, first_byte): argument
1018 return ((first_byte >> 3) & 0x1F) == 0x1C
1020 def _is_iphc(self, first_byte): argument
1021 return ((first_byte >> 5) & 0x07) == 0x03
1116 first_byte = ord(self._peek_n_bytes(data, n=1))
1118 if self._is_mesh_header(first_byte):
1124 elif self._is_first_fragmentation_header(first_byte):
1127 elif self._is_subsequent_fragmentation_header(first_byte):
1130 elif self._is_iphc(first_byte):
1134 raise RuntimeError("Unsupported header type: 0x{:02x}".format(first_byte))