Feature/bip6 debug enable (#209)

* Added BACNET_BIP6_DEBUG environment variable to enhance BACnet/IPv6 debugging

* Added BACNET_BIP6_DEBUG environment variable to enhance BACnet/IPv6 debugging

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-01-08 11:34:11 -06:00
committed by GitHub
parent d77925a252
commit 889b7f9357
8 changed files with 188 additions and 50 deletions
+4
View File
@@ -102,6 +102,10 @@ extern "C" {
void bip6_receive_callback(
void);
BACNET_STACK_EXPORT
void bip6_debug_enable(
void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
+5
View File
@@ -431,6 +431,11 @@ void dlenv_init(void)
#endif
#if defined(BACDL_BIP6)
BACNET_IP6_ADDRESS addr;
pEnv = getenv("BACNET_BIP6_DEBUG");
if (pEnv) {
bip6_debug_enable();
bvlc6_debug_enable();
}
pEnv = getenv("BACNET_BIP6_BROADCAST");
if (pEnv) {
bvlc6_address_set(&addr, (uint16_t)strtol(pEnv, NULL, 0), 0, 0, 0, 0, 0,