switch_status_t switch_router_mac_free(switch_device_t device) { tommy_hashtable_done(&smac_rewrite_table); switch_handle_type_free(SWITCH_HANDLE_TYPE_MY_MAC); return SWITCH_STATUS_SUCCESS; }
switch_status_t switch_neighbor_free(switch_device_t device) { UNUSED(device); switch_handle_type_free(SWITCH_HANDLE_TYPE_ARP); tommy_hashtable_done(&switch_dmac_rewrite_table); tommy_hashtable_done(&switch_neighbor_dmac_table); switch_api_id_allocator_destroy(dmac_rewrite_index_allocator); return SWITCH_STATUS_SUCCESS; }
switch_status_t switch_l3_free(switch_device_t device) { UNUSED(device); tommy_hashtable_done(&switch_l3_hash_table); switch_handle_type_free(SWITCH_HANDLE_TYPE_URPF); return SWITCH_STATUS_SUCCESS; }
switch_status_t switch_stp_free(switch_device_t device) { switch_handle_type_free(SWITCH_HANDLE_TYPE_STP); return SWITCH_STATUS_SUCCESS; }