函数逻辑报告

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

函数名称:Check if we need to perform checksum complete validation.* Returns true if checksum complete is needed, false otherwise* (either checksum is unnecessary or zero checksum is allowed).

函数原型:static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, bool zero_okay, __sum16 check)

返回类型:bool

参数:

类型参数名称
struct sk_buff *skb
boolzero_okay
__sum16check
3907  如果skb_csum_unnecessary(skb)或zero_okay且非check
3908  csum_valid等于1
3909  __skb_decr_checksum_unnecessary(skb)
3910  返回:false
3913  返回:true