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:
@@ -102,6 +102,10 @@ extern "C" {
|
||||
void bip6_receive_callback(
|
||||
void);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
void bip6_debug_enable(
|
||||
void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user