Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct sk_buff * | skb | |
__be16 | type | |
int * | depth |
583 | vlan_depth = mac_len |
590 | If vlan_depth Then |
591 | If WARN_ON(vlan_depth < The additional bytes required by VLAN* (in addition to the Ethernet header)) Then Return 0 |
594 | Else |
597 | Do |
610 | If depth Then depth = vlan_depth |
613 | Return type |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |