'\" t .\" Title: skb_checksum_trimmed .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SKB_CHECKSUM_TRIMMED" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" skb_checksum_trimmed \- validate checksum of an skb .SH "SYNOPSIS" .HP \w'struct\ sk_buff\ *\ skb_checksum_trimmed('u .BI "struct sk_buff * skb_checksum_trimmed(struct\ sk_buff\ *\ " "skb" ", unsigned\ int\ " "transport_len" ", __sum16(*" "skb_chkf" ")\ (struct\ sk_buff\ *skb));" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 the skb to check .RE .PP \fItransport_len\fR .RS 4 the data length beyond the network header .RE .PP \fIskb_chkf\fR .RS 4 checksum function to use .RE .SH "DESCRIPTION" .PP Applies the given checksum function skb_chkf to the provided skb\&. Returns a checked and maybe trimmed skb\&. Returns NULL on error\&. .PP If the skb has data beyond the given transport length, then a trimmed & cloned skb is checked and returned\&. .PP Caller needs to set the skb transport header and free any returned skb if it differs from the provided skb\&. .SH "COPYRIGHT" .br