Home
last modified time | relevance | path

Searched refs:iphc (Results 1 – 4 of 4) sorted by relevance

/openthread-latest/tests/unit/
Dtest_lowpan.cpp152 uint8_t iphc[512]; in Test() local
159 aVector.GetCompressedStream(iphc, iphcLength); in Test()
172 DumpBuffer("Expected LOWPAN_IPHC compressed frame", iphc, iphcLength); in Test()
201 VerifyOrQuit(memcmp(iphc, result, iphcLength) == 0, "Lowpan::Compress failed"); in Test()
231 frameData.Init(iphc, iphcLength); in Test()
246 …VerifyOrQuit((frameData.GetBytes() - iphc) == aVector.mIphcHeader.mLength, "Lowpan::Decompress fai… in Test()
292 uint8_t iphc[] = {0x7a, 0x33, 0x3a}; in TestFullyCompressableLongAddresses() local
293 testVector.SetIphcHeader(iphc, sizeof(iphc)); in TestFullyCompressableLongAddresses()
317 uint8_t iphc[] = {0x7a, 0x33, 0x3a}; in TestFullyCompressableShortAddresses() local
318 testVector.SetIphcHeader(iphc, sizeof(iphc)); in TestFullyCompressableShortAddresses()
[all …]
/openthread-latest/tests/scripts/thread-cert/
Dlowpan.py488 def _decompress_tf(self, iphc, data): argument
489 if iphc.tf == self.IPHC_TF_4B:
492 elif iphc.tf == self.IPHC_TF_3B:
495 elif iphc.tf == self.IPHC_TF_1B:
498 elif iphc.tf == self.IPHC_TF_ELIDED:
508 def _decompress_hlim(self, iphc, data): argument
509 if iphc.hlim == self.IPHC_HLIM_INLINE:
512 elif iphc.hlim == self.IPHC_HLIM_1:
515 elif iphc.hlim == self.IPHC_HLIM_64:
518 elif iphc.hlim == self.IPHC_HLIM_255:
[all …]
Dtest_lowpan.py2334iphc = lowpan.LowpanIPHC(tf, any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2338 … actual_traffic_class, actual_flow_label = factory._decompress_tf(iphc, io.BytesIO(data_bytes))
2358iphc = lowpan.LowpanIPHC(tf, any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2362 … actual_traffic_class, actual_flow_label = factory._decompress_tf(iphc, io.BytesIO(data_bytes))
2379iphc = lowpan.LowpanIPHC(tf, any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2383 … actual_traffic_class, actual_flow_label = factory._decompress_tf(iphc, io.BytesIO(data_bytes))
2396iphc = lowpan.LowpanIPHC(tf, any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2400 … actual_traffic_class, actual_flow_label = factory._decompress_tf(iphc, io.BytesIO(data_bytes))
2414iphc = lowpan.LowpanIPHC(any_tf(), nh, any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2420 actual_next_header = factory._decompress_nh(iphc, io.BytesIO(data_bytes))
[all …]
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py279 self.assertIsInstanceOrNull(lowpan.iphc.tf, int)
280 self.assertIsInstanceOrNull(lowpan.iphc.nh, int)
281 self.assertIsInstanceOrNull(lowpan.iphc.hlim, int)
282 self.assertIsInstanceOrNull(lowpan.iphc.cid, int)
283 self.assertIsInstanceOrNull(lowpan.iphc.sac, int)
284 self.assertIsInstanceOrNull(lowpan.iphc.sam, int)
285 self.assertIsInstanceOrNull(lowpan.iphc.m, int)
286 self.assertIsInstanceOrNull(lowpan.iphc.dac, int)
287 self.assertIsInstanceOrNull(lowpan.iphc.dam, int)
288 self.assertIsInstanceOrNull(lowpan.iphc.sctx.prefix, Bytes)
[all …]