Fixed ipv6 destination port and multicast interface issues. (#1161)

This commit is contained in:
matt7aylor
2025-11-28 05:14:35 +00:00
committed by GitHub
parent ca9836b099
commit f28c804969
2 changed files with 15 additions and 2 deletions
+3 -2
View File
@@ -1037,10 +1037,11 @@ static void datalink_init(void)
}
pEnv = getenv("BACNET_BIP6_BROADCAST");
if (pEnv) {
BACNET_IP6_ADDRESS addr;
BACNET_IP6_ADDRESS addr = { 0 };
bvlc6_address_set(
&addr, (uint16_t)strtol(pEnv, NULL, 0), 0, 0, 0, 0, 0, 0,
&addr, (uint16_t)strtol(pEnv, NULL, 16), 0, 0, 0, 0, 0, 0,
BIP6_MULTICAST_GROUP_ID);
addr.port = bip6_get_port();
bip6_set_broadcast_addr(&addr);
}
if (!bip6_init(getenv("BACNET_BIP6_IFACE"))) {