'\" t .\" Title: skb_partial_csum_set .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SKB_PARTIAL_CSUM_SET" "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_partial_csum_set \- set up and verify partial csum values for packet .SH "SYNOPSIS" .HP \w'bool\ skb_partial_csum_set('u .BI "bool skb_partial_csum_set(struct\ sk_buff\ *\ " "skb" ", u16\ " "start" ", u16\ " "off" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 the skb to set .RE .PP \fIstart\fR .RS 4 the number of bytes after skb\->data to start checksumming\&. .RE .PP \fIoff\fR .RS 4 the offset from start to place the checksum\&. .RE .SH "DESCRIPTION" .PP 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\*(Aqt oops\&. .PP This function checks and sets those values and skb\->ip_summed: if this returns false you should drop the packet\&. .SH "COPYRIGHT" .br