1SKB_CHECKSUM_TRIMMED(9)        Linux Networking        SKB_CHECKSUM_TRIMMED(9)
2
3
4

NAME

6       skb_checksum_trimmed - validate checksum of an skb
7

SYNOPSIS

9       struct sk_buff * skb_checksum_trimmed(struct sk_buff * skb,
10                                             unsigned int transport_len,
11                                             __sum16(*skb_chkf) (struct sk_buff *skb));
12

ARGUMENTS

14       skb
15           the skb to check
16
17       transport_len
18           the data length beyond the network header
19
20       skb_chkf
21           checksum function to use
22

DESCRIPTION

24       Applies the given checksum function skb_chkf to the provided skb.
25       Returns a checked and maybe trimmed skb. Returns NULL on error.
26
27       If the skb has data beyond the given transport length, then a trimmed &
28       cloned skb is checked and returned.
29
30       Caller needs to set the skb transport header and free any returned skb
31       if it differs from the provided skb.
32
34Kernel Hackers Manual 3.10         June 2019           SKB_CHECKSUM_TRIMMED(9)
Impressum