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/vlan.c
int rtnl_link_vlan_set_id(struct rtnl_link* link, uint16_t id)
{
    struct vlan_info* vi = link->l_info;

    IS_VLAN_LINK_ASSERT(link);

    vi->vi_vlan_id = id;
    vi->vi_mask |= VLAN_HAS_ID;

    return 0;
}
/**
 * Set VLAN ID
 * @arg link		Link object
 * @arg id		VLAN identifier
 *
 * @return 0 on success or a negative error code
 */
Set VLAN ID
@arg link            Link object
@arg id              VLAN identifier

@return 0 on success or a negative error code
Set VLAN ID @arg link Link object @arg id VLAN identifier @return 0 on success or a negative error code
int rtnl_link_vlan_set_id(struct rtnl_link* link, uint16_t id)
{
    struct vlan_info* vi = link->l_info;
    IS_VLAN_LINK_ASSERT(link);
    vi->vi_vlan_id = id;
    vi->vi_mask |= VLAN_HAS_ID;
    return 0;
}
int rtnl_link_vlan_set_id ( struct rtnl_link * link , uint16_t id ) { struct vlan_info * vi = link -> l_info ; IS_VLAN_LINK_ASSERT ( link ) ; vi -> vi_vlan_id = id ; vi -> vi_mask |= VLAN_HAS_ID ; return 0 ; }
Set VLAN ID
 @arg link            Link object
 @arg id              VLAN identifier
Set VLAN ID @arg link Link object @arg id VLAN identifier