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

NAME

6       skb_partial_csum_set - set up and verify partial csum values for packet
7

SYNOPSIS

9       bool skb_partial_csum_set(struct sk_buff * skb, u16 start, u16 off);
10

ARGUMENTS

12       skb
13           the skb to set
14
15       start
16           the number of bytes after skb->data to start checksumming.
17
18       off
19           the offset from start to place the checksum.
20

DESCRIPTION

22       For untrusted partially-checksummed packets, we need to make sure the
23       values for skb->csum_start and skb->csum_offset are valid so we donĀ“t
24       oops.
25
26       This function checks and sets those values and skb->ip_summed: if this
27       returns false you should drop the packet.
28
30Kernel Hackers Manual 2.6.         June 2019           SKB_PARTIAL_CSUM_SET(9)
Impressum