函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\if_vlan.h Create Date:2022-07-27 07:04:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:h_type_vlan - check for valid vlan ether type.*@ethertype: ether type to check* Returns true if the ether type is a vlan ether type.

函数原型:static inline bool eth_type_vlan(__be16 ethertype)

返回类型:bool

参数:

类型参数名称
__be16ethertype
303  :ethertype恒等于htons(802.1Q VLAN Extended Header )
304  :ethertype恒等于htons(802.1ad Service VLAN )
305  返回:true
306  默认
307  返回:false
调用者
名称描述
__vlan_get_tag得到VLAN ID有效载荷的一部分
__vlan_get_protocolvlan_get_protocol - get protocol EtherType.*@skb: skbuff to query*@type: first vlan protocol*@depth: buffer to store length of eth and vlan tags in bytes* Returns the EtherType of the packet, regardless of whether it is
skb_vlan_tagged 检查如果skb是VLAN标记
skb_vlan_tagged_multi 检查是否为多头的VLAN标记skb