---
name: "skb_partial_csum_set"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_partial_csum_set"
---

# skb\_partial\_csum\_set(9)

set up and verify partial csum values for packet

## NAME

skb\_partial\_csum\_set - set up and verify partial csum values for packet

## SYNOPSIS

**bool skb\_partial\_csum\_set(struct sk\_buff \*** *skb***, u16** *start***, u16** *off***);**

## ARGUMENTS

*skb*

the skb to set

*start*

the number of bytes after skb-\>data to start checksumming.

*off*

the offset from start to place the checksum.

## DESCRIPTION

For untrusted partially-checksummed packets, we need to make sure the values for skb-\>csum\_start and skb-\>csum\_offset are valid so we don't oops.

This function checks and sets those values and skb-\>ip\_summed: if this returns false you should drop the packet.

## COPYRIGHT
