函数逻辑报告 |
Source Code:include\linux\if_vlan.h |
Create Date:2022-07-27 07:04:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static inline __be16 __vlan_get_protocol(struct sk_buff *skb, __be16 type, int *depth)
返回类型:__be16
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct sk_buff * | skb | |
| __be16 | type | |
| int * | depth |
| 583 | vlan_depth等于mac_len |
| 590 | 如果vlan_depth则 |
| 594 | 否则 |
| 597 | 循环 |
| 610 | 如果depth则depth等于vlan_depth |
| 613 | 返回:type |
| 名称 | 描述 |
|---|---|
| vlan_get_protocol | 得到协议的以太网类型 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |