Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\if_vlan.h Create Date:2022-07-28 06:06:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vlan_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

Proto:static inline __be16 __vlan_get_protocol(struct sk_buff *skb, __be16 type, int *depth)

Type:__be16

Parameter:

TypeParameterName
struct sk_buff *skb
__be16type
int *depth
583  vlan_depth = mac_len
589  If 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. Then
590  If vlan_depth Then
594  Else
597  Do
604  vh = data + vlan_depth
607  When 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. cycle
610  If depth Then depth = vlan_depth
613  Return type