openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/route/link/vrf.c
int rtnl_link_vrf_get_tableid(struct rtnl_link* link, uint32_t* id)
{
    struct vrf_info* vi = link->l_info;

    IS_VRF_LINK_ASSERT(link);
    if (!id)
        return -NLE_INVAL;

    if (vi->vi_mask & VRF_HAS_TABLE_ID)
        *id = vi->table_id;
    else
        return -NLE_AGAIN;

    return 0;
}
/**
 * Get VRF table id
 * @arg link           Link object
 * @arg id             Pointer to store table identifier
 *
 * @return 0 on success or a negative error code
 */
Get VRF table id
@arg link           Link object
@arg id             Pointer to store table identifier

@return 0 on success or a negative error code
Get VRF table id @arg link Link object @arg id Pointer to store table identifier @return 0 on success or a negative error code
int rtnl_link_vrf_get_tableid(struct rtnl_link* link, uint32_t* id)
{
    struct vrf_info* vi = link->l_info;
    IS_VRF_LINK_ASSERT(link);
    if (!id)
        return -NLE_INVAL;
    if (vi->vi_mask & VRF_HAS_TABLE_ID)
        *id = vi->table_id;
    else
        return -NLE_AGAIN;
    return 0;
}
int rtnl_link_vrf_get_tableid ( struct rtnl_link * link , uint32_t * id ) { struct vrf_info * vi = link -> l_info ; IS_VRF_LINK_ASSERT ( link ) ; if ( ! id ) return - NLE_INVAL ; if ( vi -> vi_mask & VRF_HAS_TABLE_ID ) * id = vi -> table_id ; else return - NLE_AGAIN ; return 0 ; }
Get VRF table id
 @arg link           Link object
 @arg id             Pointer to store table identifier
Get VRF table id @arg link Link object @arg id Pointer to store table identifier