函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__skb_postpull_rcsum

函数原型:static __always_inline void __skb_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len, unsigned int off)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
const void *start
unsigned intlen
unsigned intoff
3295  如果ip_summed恒等于CHECKSUM_COMPLETEcsum等于csum_block_sub(csum, mputes the checksum of a memory block at buff, length len,* and adds in "sum" (32-bit)* returns a 32-bit number suitable for feeding into itself* or csum_tcpudp_magic* this function must be called with even lengths, except* for the last fragment, which , off)
3298  否则如果ip_summed恒等于CHECKSUM_PARTIALskb_checksum_start_offset(skb)小于0则ip_summed等于Don't change this without changing skb_csum_unnecessary!
调用者
名称描述
skb_postpull_rcsumskb_postpull_rcsum - update checksum for received skb after pull*@skb: buffer to update*@start: start of data before pull*@len: length of data pulled* After doing a pull on a received packet, you need to call this to* update the CHECKSUM_COMPLETE