函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\inet_ecn.h Create Date:2022-07-27 07:40:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:INET_ECN_set_ce

函数原型:static inline int INET_ECN_set_ce(struct sk_buff *skb)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
146  :protocol恒等于cpu_to_be16(Internet Protocol packet )
147  如果skb_network_header(skb)加sizeof(structiphdr)小于等于skb_tail_pointer(skb)则返回:IP_ECN_set_ce(ip_hdr(skb))
150  退出
152  :protocol恒等于cpu_to_be16(IPv6 over bluebook )
153  如果skb_network_header(skb)加sizeof(structipv6hdr)小于等于skb_tail_pointer(skb)则返回: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.
156  退出
159  返回:0
调用者
名称描述
INET_ECN_decapsulate