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_set_tableid(struct rtnl_link* link, uint32_t id)
{
    struct vrf_info* vi = link->l_info;

    IS_VRF_LINK_ASSERT(link);
    if (id > VRF_TABLE_ID_MAX)
        return -NLE_INVAL;

    vi->table_id = id;
    vi->vi_mask |= VRF_HAS_TABLE_ID;

    return 0;
}
/**
 * Set VRF table id
 * @arg link           Link object
 * @arg id             Table identifier associated with VRF link
 *
 * @return 0 on success or a negative error code
 */
Set VRF table id
@arg link           Link object
@arg id             Table identifier associated with VRF link

@return 0 on success or a negative error code
Set VRF table id @arg link Link object @arg id Table identifier associated with VRF link @return 0 on success or a negative error code
int rtnl_link_vrf_set_tableid(struct rtnl_link* link, uint32_t id)
{
    struct vrf_info* vi = link->l_info;
    IS_VRF_LINK_ASSERT(link);
    if (id > VRF_TABLE_ID_MAX)
        return -NLE_INVAL;
    vi->table_id = id;
    vi->vi_mask |= VRF_HAS_TABLE_ID;
    return 0;
}
int rtnl_link_vrf_set_tableid ( struct rtnl_link * link , uint32_t id ) { struct vrf_info * vi = link -> l_info ; IS_VRF_LINK_ASSERT ( link ) ; if ( id > VRF_TABLE_ID_MAX ) return - NLE_INVAL ; vi -> table_id = id ; vi -> vi_mask |= VRF_HAS_TABLE_ID ; return 0 ; }
Set VRF table id
 @arg link           Link object
 @arg id             Table identifier associated with VRF link
Set VRF table id @arg link Link object @arg id Table identifier associated with VRF link