1SKB_CHECKSUM_COMPLET(9) Linux Networking SKB_CHECKSUM_COMPLET(9)
2
3
4
6 skb_checksum_complete - Calculate checksum of an entire packet
7
9 __sum16 skb_checksum_complete(struct sk_buff * skb);
10
12 skb
13 packet to process
14
16 This function calculates the checksum over the entire packet plus the
17 value of skb->csum. The latter can be used to supply the checksum of a
18 pseudo header as used by TCP/UDP. It returns the checksum.
19
20 For protocols that contain complete checksums such as ICMP/TCP/UDP,
21 this function can be used to verify that checksum on received packets.
22 In that case the function should return zero if the checksum is
23 correct. In particular, this function will return zero if
24 skb->ip_summed is CHECKSUM_UNNECESSARY which indicates that the
25 hardware has already verified the correctness of the checksum.
26
28Kernel Hackers Manual 3.10 June 2019 SKB_CHECKSUM_COMPLET(9)