Had an issue where Original_Broadcast requests were not responded to with Original_Broadcast packets; this is a fix for that.

This commit is contained in:
tbrennan3
2011-09-19 15:20:26 +00:00
parent 24bea2eb82
commit 3c9f0c9298
2 changed files with 32 additions and 8 deletions
+6 -1
View File
@@ -409,7 +409,12 @@ int npdu_decode(
}
}
} else if (src) {
src->net = 0;
/* Clear the net number, with one exception: if the receive()
* function set it to BACNET_BROADCAST_NETWORK, (eg, for
* BVLC_ORIGINAL_BROADCAST_NPDU) then don't stomp on that.
*/
if ( src->net != BACNET_BROADCAST_NETWORK )
src->net = 0;
src->len = 0;
for (i = 0; i < MAX_MAC_LEN; i++) {
src->adr[i] = 0;