From 8bf833d9c8118cff25a855b0c074a5177ea3166e Mon Sep 17 00:00:00 2001 From: Serubin Date: Thu, 1 Aug 2019 14:31:04 -0700 Subject: [PATCH] Fix SignalPdu size issue Don't rely on data bucket to calculate size - it's not consistent --- src/main/java/edu/nps/moves/disutil/PduFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/nps/moves/disutil/PduFactory.java b/src/main/java/edu/nps/moves/disutil/PduFactory.java index 61c41d1c..8d9e447c 100644 --- a/src/main/java/edu/nps/moves/disutil/PduFactory.java +++ b/src/main/java/edu/nps/moves/disutil/PduFactory.java @@ -413,7 +413,7 @@ public List getPdusFromBundle(byte data[]) } // Advance the index to the start of the next PDU - int pduLength = pdu.getLength(); + int pduLength = pdu.getPduLength(); pduStartPointInData = pduStartPointInData + pduLength; //System.out.println("PDUStartPOint:" + pduStartPointInData + " data: " + data.length);