Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\skbuff.h Create Date:2022-07-28 05:52:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Validate (init) checksum based on checksum complete

Proto:static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, bool complete, __wsum psum)

Type:__sum16

Parameter:

TypeParameterName
struct sk_buff *skb
boolcomplete
__wsumpsum
3946  If ip_summed == This is the most generic way Then
3947  If Not Fold a partial checksum Then
3948  csum_valid = 1
3949  Return 0
3953  csum = psum
3955  If complete || len <= For small packets <= CHECKSUM_BREAK perform checksum complete directly* in checksum_init. Then
3958  csum = __skb_checksum_complete(skb)
3959  csum_valid = Not csum
3960  Return csum
3963  Return 0