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] [day] [month] [year] [list]
Message-Id: <20131201.203517.997917100259265918.davem@davemloft.net>
Date:	Sun, 01 Dec 2013 20:35:17 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	fan.du@...driver.com
Cc:	steffen.klassert@...unet.com, netdev@...r.kernel.org
Subject: Re: [PATCHv2 net] {pktgen, xfrm} Update IPv4 header total len and
 checksum after tranformation

From: Fan Du <fan.du@...driver.com>
Date: Sun, 1 Dec 2013 16:28:48 +0800

> commit a553e4a6317b2cfc7659542c10fe43184ffe53da ("[PKTGEN]: IPSEC support")
> tried to support IPsec ESP transport transformation for pktgen, but acctually
> this doesn't work at all for two reasons(The orignal transformed packet has
> bad IPv4 checksum value, as well as wrong auth value, reported by wireshark)
> 
> - After transpormation, IPv4 header total length needs update,
>   because encrypted payload's length is NOT same as that of plain text.
> 
> - After transformation, IPv4 checksum needs re-caculate because of payload
>   has been changed.
> 
> With this patch, armmed pktgen with below cofiguration, Wireshark is able to
> decrypted ESP packet generated by pktgen without any IPv4 checksum error or
> auth value error.
> 
> pgset "flag IPSEC"
> pgset "flows 1"
> 
> Signed-off-by: Fan Du <fan.du@...driver.com>

Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ