From d1f12638b4c3135b356bea7f3a8441b769134ca8 Mon Sep 17 00:00:00 2001 From: Laurent Deru Date: Tue, 9 Apr 2013 00:18:19 +0200 Subject: [PATCH] Bugfix: Corrected wireshark bad FCS errors in COOJA Pcap export --- .../java/se/sics/cooja/plugins/analyzers/PcapExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/analyzers/PcapExporter.java b/tools/cooja/java/se/sics/cooja/plugins/analyzers/PcapExporter.java index f978bbb60..4dbbe12f4 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/analyzers/PcapExporter.java +++ b/tools/cooja/java/se/sics/cooja/plugins/analyzers/PcapExporter.java @@ -39,7 +39,7 @@ public class PcapExporter { out.writeInt((int) System.currentTimeMillis() / 1000); out.writeInt((int) ((System.currentTimeMillis() % 1000) * 1000)); out.writeInt(data.length); - out.writeInt(data.length); + out.writeInt(data.length+2); /* and the data */ out.write(data); out.flush();