Bugfix/network port object bdt required (#184)
* Added BDT encoding to network port object. * Added BDT encoding rules from clause 21 * Added FDT encoding to network port object. * added more unit tests for BVLC * Fix network port and device object unit tests * fix router build for bvlc dependencies * fix router build for bvlc dependencies * fix network port MSTP compile Co-authored-by: Steve Karg <skarg@users.sourceforge.net> Co-authored-by: Steve Karg <steve.karg@legrand.us>
This commit is contained in:
@@ -41,6 +41,9 @@
|
||||
|
||||
/** @file dlenv.c Initialize the DataLink configuration. */
|
||||
#if defined(BACDL_BIP)
|
||||
#ifndef BBMD_ENABLED
|
||||
#define BBMD_ENABLED 1
|
||||
#endif
|
||||
/* timer used to renew Foreign Device Registration */
|
||||
static uint16_t BBMD_Timer_Seconds;
|
||||
/* BBMD variables */
|
||||
@@ -251,6 +254,10 @@ static void dlenv_network_port_init(void)
|
||||
Network_Port_MAC_Address_Set(instance, &addr.address[0], 6);
|
||||
Network_Port_IP_Subnet_Prefix_Set(instance, bip_get_subnet_prefix());
|
||||
Network_Port_Link_Speed_Set(instance, 0.0);
|
||||
#if BBMD_ENABLED
|
||||
Network_Port_BBMD_BD_Table_Set(instance, bvlc_bdt_list());
|
||||
Network_Port_BBMD_FD_Table_Set(instance, bvlc_fdt_list());
|
||||
#endif
|
||||
/* common NP data */
|
||||
Network_Port_Reliability_Set(instance, RELIABILITY_NO_FAULT_DETECTED);
|
||||
Network_Port_Out_Of_Service_Set(instance, false);
|
||||
|
||||
Reference in New Issue
Block a user