Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ppp: call skb_checksum_complete_unset in ppp_receive_frame

Call checksum_complete_unset in PPP receive to discard checksum-complete
value. PPP does not pull checksum for headers and also modifies packet
as in VJ compression.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tom Herbert and committed by
David S. Miller
3dfb0534 4e18b9ad

+1
+1
drivers/net/ppp/ppp_generic.c
··· 1716 1716 { 1717 1717 /* note: a 0-length skb is used as an error indication */ 1718 1718 if (skb->len > 0) { 1719 + skb_checksum_complete_unset(skb); 1719 1720 #ifdef CONFIG_PPP_MULTILINK 1720 1721 /* XXX do channel-level decompression here */ 1721 1722 if (PPP_PROTO(skb) == PPP_MP)