DADR is only valid when DNET is specified (i.e. net is non-zero).

This commit is contained in:
skarg
2012-09-19 21:27:00 +00:00
parent f5c9073853
commit 6a2d467fc2
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
/* FIXME: mac[] only needs to be as big as our local datalink MAC */
#define MAX_MAC_LEN 7
struct BACnet_Device_Address {
/* mac_len = 0 if global address */
/* mac_len = 0 is a broadcast address */
uint8_t mac_len;
/* note: MAC for IP addresses uses 4 bytes for addr, 2 bytes for port */
/* use de/encode_unsigned32/16 for re/storing the IP address */