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

    IS_VLAN_LINK_ASSERT(link);

    vi->vi_protocol = protocol;
    vi->vi_mask |= VLAN_HAS_PROTOCOL;

    return 0;
}
/**
 * Set VLAN protocol
 * @arg link		Link object
 * @arg protocol	VLAN protocol in network byte order.
 *   Probably you want to set it to something like htons(ETH_P_8021Q).
 *
 * @return 0 on success or a negative error code
 */
Set VLAN protocol
@arg link            Link object
@arg protocol        VLAN protocol in network byte order.
Probably you want to set it to something like htons(ETH_P_8021Q).

@return 0 on success or a negative error code
Set VLAN protocol @arg link Link object @arg protocol VLAN protocol in network byte order . Probably you want to set it to something like htons ( ETH_P_8021Q ) . @return 0 on success or a negative error code
int rtnl_link_vlan_set_protocol(struct rtnl_link* link, uint16_t protocol)
{
    struct vlan_info* vi = link->l_info;
    IS_VLAN_LINK_ASSERT(link);
    vi->vi_protocol = protocol;
    vi->vi_mask |= VLAN_HAS_PROTOCOL;
    return 0;
}
int rtnl_link_vlan_set_protocol ( struct rtnl_link * link , uint16_t protocol ) { struct vlan_info * vi = link -> l_info ; IS_VLAN_LINK_ASSERT ( link ) ; vi -> vi_protocol = protocol ; vi -> vi_mask |= VLAN_HAS_PROTOCOL ; return 0 ; }
Set VLAN protocol
 @arg link            Link object
 @arg protocol        VLAN protocol in network byte order.
Set VLAN protocol @arg link Link object @arg protocol VLAN protocol in network byte order .