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:
Łukasz Duda
2016-11-09 01:00:08 -08:00
committed by Jonathan Hui
parent c4eff62024
commit ede95a1220
12 changed files with 2252 additions and 348 deletions
+1 -3
View File
@@ -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()));
}