mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sixlowpan: fix decoding of DAM in sixlowpan_print()
Destination address compression is all in the least significant nibble of that byte in the IPHC header [[1]]. [1]: https://tools.ietf.org/html/rfc6282#section-3.1.1
This commit is contained in:
parent
7f6fe21b93
commit
ecfff3e812
@ -201,15 +201,15 @@ void sixlowpan_print(uint8_t *data, size_t size)
|
||||
puts("reserved");
|
||||
break;
|
||||
|
||||
case 0x10:
|
||||
case 0x01:
|
||||
puts("64 bits inline");
|
||||
break;
|
||||
|
||||
case 0x20:
|
||||
case 0x02:
|
||||
puts("16 bits inline");
|
||||
break;
|
||||
|
||||
case 0x30:
|
||||
case 0x03:
|
||||
puts("elided (use L2 address)");
|
||||
break;
|
||||
}
|
||||
@ -222,15 +222,15 @@ void sixlowpan_print(uint8_t *data, size_t size)
|
||||
puts("128 bits inline");
|
||||
break;
|
||||
|
||||
case 0x10:
|
||||
case 0x01:
|
||||
puts("64 bits inline");
|
||||
break;
|
||||
|
||||
case 0x20:
|
||||
case 0x02:
|
||||
puts("16 bits inline");
|
||||
break;
|
||||
|
||||
case 0x30:
|
||||
case 0x03:
|
||||
puts("elided (use L2 address)");
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user