lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <568EA641.1010906@solarflare.com>
Date:	Thu, 7 Jan 2016 17:54:09 +0000
From:	Edward Cree <ecree@...arflare.com>
To:	David Laight <David.Laight@...LAB.COM>,
	David Miller <davem@...emloft.net>
CC:	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-net-drivers@...arflare.com" <linux-net-drivers@...arflare.com>,
	"Tom Herbert" <tom@...bertland.com>
Subject: Re: [PATCH v2 net-next 1/5] net: local checksum offload for
 encapsulation

On 07/01/16 17:22, David Laight wrote:
> Isn't it even simpler than that?
> The checksum of the inner packet (including its header) is ~0 (ie 0).
> So the checksum of the whole packet (for the outer header) is the same
> as that of the packet down to the start of the inner header.
Not quite.  The inner pseudo-header is included in the inner checksum
 calculation, but does not actually appear in the packet.  Thus the checksum
 of the inner packet is ~sum_of_inner_pseudo_header.

-ed

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ