/* Allocate and initialize interface vector. */ void stp_if_init (void) { /* Default initial size of interface vector. */ if_init(); if_add_hook (IF_NEW_HOOK, stp_interface_new_hook); if_add_hook (IF_DELETE_HOOK, stp_interface_delete_hook); /* Install interface node. */ install_node (&interface_node, stp_interface_config_write); /* Install commands. */ install_element (CONFIG_NODE, &interface_cmd); install_element (CONFIG_NODE, &no_interface_cmd); install_default (INTERFACE_NODE); install_element (INTERFACE_NODE, &interface_desc_cmd); install_element (INTERFACE_NODE, &no_interface_desc_cmd); }
dcli_wireless_init(void) { /****moved from dcli_stp.c****/ install_node(&hansi_wtp_node,NULL,"HANSI_WTP_NODE"); install_default(HANSI_WTP_NODE); install_node(&local_hansi_wtp_node,NULL,"LOCAL_HANSI_WTP_NODE"); install_default(LOCAL_HANSI_WTP_NODE); /****moved from dcli_radio.c***/ install_node(&hansi_radio_node,NULL,"HANSI_RADIO_NODE"); install_default(HANSI_RADIO_NODE); install_node(&local_hansi_radio_node,NULL,"LOCAL_HANSI_RADIO_NODE"); install_default(LOCAL_HANSI_RADIO_NODE); /***moved from dcli_ebr.c***/ install_node(&hansi_ebr_node,NULL,"HANSI_EBR_NODE"); install_default(HANSI_EBR_NODE); install_node(&local_hansi_ebr_node,NULL,"LOCAL_HANSI_EBR_NODE"); install_default(LOCAL_HANSI_EBR_NODE); /***moved from dcli_wlan.c**/ install_node(&hansi_wlan_node,NULL,"HANSI_WLAN_NODE"); install_default(HANSI_WLAN_NODE); install_node(&local_hansi_wlan_node,NULL,"LOCAL_HANSI_WLAN_NODE"); install_default(LOCAL_HANSI_WLAN_NODE); /**moved from dcli_wlan.c**/ install_node(&hansi_ap_group_node,NULL,"HANSI_AP_GROUP_NODE"); install_default(HANSI_AP_GROUP_NODE); install_node(&local_hansi_ap_group_node,NULL,"LOCAL_HANSI_AP_GROUP_NODE"); install_default(LOCAL_HANSI_AP_GROUP_NODE); install_node(&hansi_ap_group_wtp_node,NULL,"HANSI_AP_GROUP_WTP_NODE"); install_default(HANSI_AP_GROUP_WTP_NODE); install_node(&local_hansi_ap_group_wtp_node,NULL,"LOCAL_HANSI_AP_GROUP_WTP_NODE"); install_default(LOCAL_HANSI_AP_GROUP_WTP_NODE); install_node(&hansi_ap_group_radio_node,NULL,"HANSI_AP_GROUP_RADIO_NODE"); install_default(HANSI_AP_GROUP_RADIO_NODE); install_node(&local_hansi_ap_group_radio_node,NULL,"LOCAL_HANSI_AP_GROUP_RADIO_NODE"); install_default(LOCAL_HANSI_AP_GROUP_RADIO_NODE); }