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_get_id(struct rtnl_link* link)
{
    struct vlan_info* vi = link->l_info;

    IS_VLAN_LINK_ASSERT(link);

    if (vi->vi_mask & VLAN_HAS_ID)
        return vi->vi_vlan_id;
    else
        return 0;
}
/**
 * Get VLAN Id
 * @arg link		Link object
 *
 * @return VLAN id, 0 if not set or a negative error code.
 */
Get VLAN Id
@arg link            Link object

@return VLAN id, 0 if not set or a negative error code.
Get VLAN Id @arg link Link object @return VLAN id 0 if not set or a negative error code .
int rtnl_link_vlan_get_id(struct rtnl_link* link)
{
    struct vlan_info* vi = link->l_info;
    IS_VLAN_LINK_ASSERT(link);
    if (vi->vi_mask & VLAN_HAS_ID)
        return vi->vi_vlan_id;
    else
        return 0;
}
int rtnl_link_vlan_get_id ( struct rtnl_link * link ) { struct vlan_info * vi = link -> l_info ; IS_VLAN_LINK_ASSERT ( link ) ; if ( vi -> vi_mask & VLAN_HAS_ID ) return vi -> vi_vlan_id ; else return 0 ; }
Get VLAN Id
 @arg link            Link object
Get VLAN Id @arg link Link object