函数逻辑报告 |
Source Code:include\net\inet_ecn.h |
Create Date:2022-07-27 07:39:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Note:* IP_ECN_set_ce() has to tweak IPV4 checksum when setting CE,* meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE* In IPv6 case, no checksum compensates the change in IPv6 header,* so we have to update skb->csum.
函数原型:static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sk_buff * | skb | |
struct ipv6hdr * | iph |
125 | 如果INET_ECN_is_not_ect(ipv6_get_dsfield(iph))则返回:0 |
129 | to等于from按位或htonl(INET_ECN_CE << 20) |
131 | 如果ip_summed恒等于CHECKSUM_COMPLETE则csum等于csum_add(csum_sub(csum, (__force__wsum)from), (__force__wsum)to) |
134 | 返回:1 |
名称 | 描述 |
---|---|
INET_ECN_set_ce |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |