'\" t .\" Title: skb_push_rcsum .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "SKB_PUSH_RCSUM" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "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_push_rcsum \- push skb and update receive checksum .SH "SYNOPSIS" .HP \w'unsigned\ char\ *\ skb_push_rcsum('u .BI "unsigned char * skb_push_rcsum(struct\ sk_buff\ *\ " "skb" ", unsigned\ int\ " "len" ");" .SH "ARGUMENTS" .PP \fIstruct sk_buff * skb\fR .RS 4 buffer to update .RE .PP \fIunsigned int len\fR .RS 4 length of data pulled .RE .SH "DESCRIPTION" .PP This function performs an skb_push on the packet and updates the CHECKSUM_COMPLETE checksum\&. It should be used on receive path processing instead of skb_push unless you know that the checksum difference is zero (e\&.g\&., a valid IP header) or you are setting ip_summed to CHECKSUM_NONE\&. .SH "COPYRIGHT" .br