From 9e154c773eac8521b78c2749e790ed0b3c4cdc55 Mon Sep 17 00:00:00 2001 From: skarg Date: Sat, 25 Jun 2005 12:39:10 +0000 Subject: [PATCH] Increased the size of the MAC address in the BACnet address to handle IPv6 addresses per the BTL Implementors Guide. --- bacnet-stack/bacdef.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/bacdef.h b/bacnet-stack/bacdef.h index 9fc74cb0..f6a99c19 100644 --- a/bacnet-stack/bacdef.h +++ b/bacnet-stack/bacdef.h @@ -61,7 +61,8 @@ typedef struct BACnet_Object_Data } BACNET_OBJECT_DATA; #define BACNET_BROADCAST_NETWORK 0xFFFF -#define MAX_MAC_LEN 8 +// IPv6 (16 octets) coupled with port number (2 octets) +#define MAX_MAC_LEN 18 struct BACnet_Device_Address { // mac_len = 0 if global address int mac_len;