Exemple #1
0
sw_error_t
isis_cleanup(a_uint32_t dev_id)
{
    sw_error_t rv = SW_OK;

    if (isis_cfg[dev_id]) {
        ISIS_NAT_HELPER_CLEANUP(rv, dev_id);

        aos_mem_free(isis_cfg[dev_id]);
        isis_cfg[dev_id] = NULL;
    }

    return SW_OK;
}
Exemple #2
0
sw_error_t
isis_cleanup(a_uint32_t dev_id)
{
    if (isis_cfg[dev_id])
    {
#if defined(IN_NAT_HELPER)
        sw_error_t rv;
        ISIS_NAT_HELPER_CLEANUP(rv, dev_id);
#endif

        aos_mem_free(isis_cfg[dev_id]);
        isis_cfg[dev_id] = NULL;
    }

    return SW_OK;
}