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
struct rtnl_link* rtnl_link_vrf_alloc(void)
{
    struct rtnl_link* link;
    int err;

    if (!(link = rtnl_link_alloc()))
        return NULL;

    if ((err = rtnl_link_set_type(link, "vrf")) < 0)
    {
        rtnl_link_put(link);
        return NULL;
    }

    return link;
}
/**
 * Allocate link object of type VRF
 *
 * @return Allocated link object or NULL.
 */
Allocate link object of type VRF
@return Allocated link object or NULL.
Allocate link object of type VRF @return Allocated link object or NULL .
struct rtnl_link* rtnl_link_vrf_alloc(void)
{
    struct rtnl_link* link;
    int err;
    if (!(link = rtnl_link_alloc()))
        return NULL;
    if ((err = rtnl_link_set_type(link, "vrf")) < 0)
    {
        rtnl_link_put(link);
        return NULL;
    }
    return link;
}
struct rtnl_link * rtnl_link_vrf_alloc ( void ) { struct rtnl_link * link ; int err ; if ( ! ( link = rtnl_link_alloc ( ) ) ) return NULL ; if ( ( err = rtnl_link_set_type ( link , " " ) ) < 0 ) { rtnl_link_put ( link ) ; return NULL ; } return link ; }
Allocate link object of type VRF
 @return Allocated link object or NULL.
Allocate link object of type VRF @return Allocated link object or NULL .