Changed Hop Count NPDU encoding to encode the actual hop count, not one less.

This commit is contained in:
skarg
2011-07-07 20:53:27 +00:00
parent 90fcf9706d
commit 97e70a55b7
+1 -1
View File
@@ -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) {