skb_push_rcsum(9)

skb_push_rcsum9

Push skb and update receive checksum

Usage

unsigned char * skb_push_rcsum(struct sk_buff * skb, unsigned int len);

Arguments

skb

buffer to update

len

length of data pulled

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.