---
name: "pskb_trim_rcsum"
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/pskb_trim_rcsum"
---

# pskb\_trim\_rcsum(9)

trim received skb and update checksum

## NAME

pskb\_trim\_rcsum - trim received skb and update checksum

## SYNOPSIS

**int pskb\_trim\_rcsum(struct sk\_buff \*** *skb***, unsigned int** *len***);**

## ARGUMENTS

*skb*

buffer to trim

*len*

new length

## DESCRIPTION

This is exactly the same as pskb\_trim except that it ensures the checksum of received packets are still valid after the operation. It can change skb pointers.

## COPYRIGHT
