函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Validate (init) checksum based on checksum complete

函数原型:static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, bool complete, __wsum psum)

返回类型:__sum16

参数:

类型参数名称
struct sk_buff *skb
boolcomplete
__wsumpsum
3946  如果ip_summed恒等于CHECKSUM_COMPLETE
3947  如果非Fold a partial checksum
3948  csum_valid等于1
3949  返回:0
3953  csum等于psum
3955  如果completelen小于等于For small packets <= CHECKSUM_BREAK perform checksum complete directly* in checksum_init.
3958  csum等于__skb_checksum_complete(skb)
3959  csum_valid等于非csum
3960  返回:csum
3963  返回:0