Any size MAC address should be allowed which is less than or equal to 7 bytes. The IPv6 16 byte addresses are planned to be handled outside this area in BACnet.

This commit is contained in:
skarg
2007-09-19 15:29:01 +00:00
parent e4d875c95f
commit b00aa000f5
+5 -4
View File
@@ -57,10 +57,11 @@
#define BACNET_MAX_PRIORITY 16
#define BACNET_BROADCAST_NETWORK 0xFFFF
/* IPv6 (16 octets) coupled with port number (2 octets) */
/* note: you could be lame and only support 6 octets */
/* FIXME: mac[] only needs to be as big as our datalink MAC */
#define MAX_MAC_LEN 18
/* Any size MAC address should be allowed which is less than or
equal to 7 bytes. The IPv6 addresses are planned to be handled
outside this area. */
/* 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 */
uint8_t mac_len;