Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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).

Proto:static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, bool zero_okay, __sum16 check)

Type:bool

Parameter:

TypeParameterName
struct sk_buff *skb
boolzero_okay
__sum16check
3907  If skb_csum_unnecessary(skb) || zero_okay && Not check Then
3908  csum_valid = 1
3909  __skb_decr_checksum_unnecessary(skb)
3910  Return false
3913  Return true