From ff113368f6c713837446aefca0238b2036ca1f48 Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 12 May 2005 13:56:23 +0000 Subject: [PATCH] Corrected BVLC length bug. --- bacnet-stack/ports/linux/bip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/ports/linux/bip.c b/bacnet-stack/ports/linux/bip.c index 1d9ffb47..eadef5a6 100644 --- a/bacnet-stack/ports/linux/bip.c +++ b/bacnet-stack/ports/linux/bip.c @@ -169,7 +169,7 @@ static int bip_send( else mtu[1] = 0x0A; /* Original-Unicast-NPDU */ mtu_len = 2; - mtu_len += encode_unsigned16(&mtu[mtu_len], pdu_len); + mtu_len += encode_unsigned16(&mtu[mtu_len], pdu_len + 4 /*inclusive*/); memcpy(&mtu[mtu_len], pdu, pdu_len); mtu_len += pdu_len;