函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dp_csum_outgoing - compute UDPv4/v6 checksum over fragments*@sk: socket we are writing to*@skb: sk_buff containing the filled-in UDP header* (checksum field must be zeroed out)

函数原型:static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)

返回类型:__wsum

参数:

类型参数名称
struct sock *sk
struct sk_buff *skb
129  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
132  csum等于csum_add(csum, csum)
134  返回:csum