diff options
author | fan.du <fan.du@windriver.com> | 2013-12-01 08:28:48 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-02 01:33:52 (GMT) |
commit | 3868204d6b89ea373a273e760609cb08020beb1a (patch) | |
tree | 2b4b120d83ea831f0b3bf3b0746311b25fdd3fbd /net/ceph | |
parent | f121159d72091f25afb22007c833e60a6845e912 (diff) | |
download | linux-fsl-qoriq-3868204d6b89ea373a273e760609cb08020beb1a.tar.xz |
{pktgen, xfrm} Update IPv4 header total len and checksum after tranformation
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@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions