From 97e70a55b702c9a1f3b87090a6aa5e245508790c Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 7 Jul 2011 20:53:27 +0000 Subject: [PATCH] Changed Hop Count NPDU encoding to encode the actual hop count, not one less. --- bacnet-stack/src/npdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/src/npdu.c b/bacnet-stack/src/npdu.c index 89861d19..6de5aca0 100644 --- a/bacnet-stack/src/npdu.c +++ b/bacnet-stack/src/npdu.c @@ -209,7 +209,7 @@ int npdu_encode_pdu( /* destined for a remote network, i.e., if DNET is present. */ /* This is a one-octet field that is initialized to a value of 0xff. */ if (dest && dest->net) { - npdu[len] = npdu_data->hop_count - 1; + npdu[len] = npdu_data->hop_count; len++; } if (npdu_data->network_layer_message) {