Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\inet_ecn.h Create Date:2022-07-28 06:42:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:INET_ECN_set_ce

Proto:static inline int INET_ECN_set_ce(struct sk_buff *skb)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
146  Case protocol == cpu_to_be16(Internet Protocol packet )
147  If skb_network_header(skb) + sizeof(structiphdr) <= skb_tail_pointer(skb) Then Return IP_ECN_set_ce(ip_hdr(skb))
150  Break
152  Case protocol == cpu_to_be16(IPv6 over bluebook )
153  If skb_network_header(skb) + sizeof(structipv6hdr) <= skb_tail_pointer(skb) Then Return 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  Break
159  Return 0