函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__vlan_insert_inner_tag - inner VLAN tag inserting*@skb: skbuff to tag*@vlan_proto: VLAN encapsulation protocol*@vlan_tci: VLAN TCI to insert*@mac_len: MAC header length including outer vlan headers* Inserts the VLAN tag into @skb as part of the payload
函数原型:static inline int __vlan_insert_inner_tag(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci, unsigned int mac_len)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sk_buff * | skb | |
__be16 | vlan_proto | |
u16 | vlan_tci | |
unsigned int | mac_len |
342 | 在缓存区顶部设置数据 |
352 | 如果此条件成立可能性大(为编译器优化)(mac_len >= Octets in ethernet type field )则 |
356 | h_vlan_proto等于vlan_proto |
357 | 否则 |
365 | h_vlan_TCI等于htons(vlan_tci) |
367 | 返回:0 |
名称 | 描述 |
---|---|
__vlan_insert_tag | __vlan_insert_tag - regular VLAN tag inserting*@skb: skbuff to tag*@vlan_proto: VLAN encapsulation protocol*@vlan_tci: VLAN TCI to insert* Inserts the VLAN tag into @skb as part of the payload* Returns error if skb_cow_head fails. |
vlan_insert_inner_tag | vlan_insert_inner_tag - inner VLAN tag inserting*@skb: skbuff to tag*@vlan_proto: VLAN encapsulation protocol*@vlan_tci: VLAN TCI to insert*@mac_len: MAC header length including outer vlan headers* Inserts the VLAN tag into @skb as part of the payload at |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |