mirror of
https://github.com/espressif/openthread.git
synced 2026-09-22 08:57:39 +00:00
6LoWPAN: Introduce test vectors and improvements (#947)
* 6LoWPAN: Add compression flag to the Context structure. * IP: Add option to initialize IPv6 header. * 6LoWPAN: Bugfixes for compression and decompression procedure. * 6LoWPAN: Add test vectors for 6LoWPAN compression and decompression.
This commit is contained in:
committed by
Jonathan Hui
parent
c4eff62024
commit
ede95a1220
@@ -55,7 +55,7 @@ void otTestPrintHex(uint8_t *aBuffer, int aLength)
|
||||
|
||||
if (i % 16 == 7) { printf(" "); }
|
||||
|
||||
if (i % 16 == 15) { printf("\n"); }
|
||||
if (i % 16 == 15 && aLength != i + 1) { printf("\n"); }
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
@@ -70,5 +70,3 @@ void otTestPrintHex(std::vector<uint8_t> &aBytes)
|
||||
{
|
||||
otTestPrintHex((uint8_t *)&aBytes[0], static_cast<int>(aBytes.size()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user