Forgot the header update for BBMD getter and setters.

Revised gateway demo to use the new device_init(NULL) way.
Eliminated triplicate I-Am responses and deprecated the offending routed_ I-Am and I-Have senders (don't see any other usages; scheduled for deletion in 2/2012).
Fixed I-Am sender to not always zero out dest->net, because if a src->net was given in Who-Is, need to have it or else global bcast in the I-Am  response.
This commit is contained in:
tbrennan3
2011-08-25 21:20:14 +00:00
parent 3c3d0b2e4c
commit a2a0434ef9
5 changed files with 16 additions and 33 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ int iam_unicast_encode_pdu(
BACNET_ADDRESS my_address;
/* The destination will be the same as the src, so copy it over. */
memcpy(dest, src, sizeof(BACNET_ADDRESS));
dest->net = 0;
/* dest->net = 0; - no, must direct back to src->net to meet BTL tests */
datalink_get_my_address(&my_address);
/* encode the NPDU portion of the packet */