From a4206273a5a491949f9e565e343f31908173c998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20L=C3=B6scher?= Date: Thu, 5 Feb 2015 13:07:18 +0100 Subject: [PATCH] Fixed HC analyser for SAC and DAC fields --- .../contikios/cooja/plugins/analyzers/IPHCPacketAnalyzer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/org/contikios/cooja/plugins/analyzers/IPHCPacketAnalyzer.java b/tools/cooja/java/org/contikios/cooja/plugins/analyzers/IPHCPacketAnalyzer.java index 80b1c72cb..ec5b55521 100644 --- a/tools/cooja/java/org/contikios/cooja/plugins/analyzers/IPHCPacketAnalyzer.java +++ b/tools/cooja/java/org/contikios/cooja/plugins/analyzers/IPHCPacketAnalyzer.java @@ -115,10 +115,10 @@ public class IPHCPacketAnalyzer extends PacketAnalyzer { .append(", NH = ").append(nhc ? "compressed" : "inline") .append(", HLIM = ").append(hlim == 0 ? "inline" : hlim) .append(", CID = ").append(cid) - .append(", SAC = ").append(sac == 1 ? "stateless" : "stateful") + .append(", SAC = ").append(sac == 0 ? "stateless" : "stateful") .append(", SAM = ").append(sam) .append(", MCast = ").append(m) - .append(", DAC = ").append(dac == 1 ? "stateless" : "stateful") + .append(", DAC = ").append(dac == 0 ? "stateless" : "stateful") .append(", DAM = ").append(dam); if (cid == 1) { verbose.append("
Contexts: sci=").append(packet.get(2) >> 4).