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:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:IP_ECN_set_ce

Proto:static inline int IP_ECN_set_ce(struct iphdr *iph)

Type:int

Parameter:

TypeParameterName
struct iphdr *iph
77  check = check
78  ecn = tos + 1 & INET_ECN_MASK
87  If Not (ecn & 2) Then Return Not ecn
95  check += htons(0xFFFB) + htons(ecn)
97  check = (__force __sum16)(check + (check >= 0xFFFF))
98  tos |= INET_ECN_CE
99  Return 1