mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
[cooja] plugins/analyzers/ICMPv6Analyzer: DTSN field is unsigned
This commit is contained in:
parent
e556419e37
commit
ab0be0b150
@ -67,7 +67,7 @@ public class ICMPv6Analyzer extends PacketAnalyzer {
|
|||||||
int version = packet.get(5) & 0xff;
|
int version = packet.get(5) & 0xff;
|
||||||
int rank = ((packet.get(6) & 0xff) << 8) + (packet.get(7) & 0xff);
|
int rank = ((packet.get(6) & 0xff) << 8) + (packet.get(7) & 0xff);
|
||||||
int mop = (packet.get(8) >> 3) & 0x07;
|
int mop = (packet.get(8) >> 3) & 0x07;
|
||||||
int dtsn = packet.get(9);
|
int dtsn = packet.get(9) & 0xFF;
|
||||||
|
|
||||||
verbose.append(" InstanceID: ").append(instanceID)
|
verbose.append(" InstanceID: ").append(instanceID)
|
||||||
.append(", Version: ").append(version)
|
.append(", Version: ").append(version)
|
||||||
|
Loading…
Reference in New Issue
Block a user