examples/ipsec-secgw: update incremental checksum
authorAkhil Goyal <akhil.goyal@nxp.com>
Mon, 15 Jan 2018 12:42:12 +0000 (18:12 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 20 Jan 2018 15:10:52 +0000 (16:10 +0100)
commit27d822e88e61fa74f30a9239fc5bb24daaae7f59
tree989d81953de2e313b26c6e2b139fedf9445223dd
parent9ebafd1e3c080299c0d75a70b18819c81b20a5b1
examples/ipsec-secgw: update incremental checksum

When TTL is decremented or ecn is updated in IP header
before forwarding the packet, checksum needs to be updated.

In this patch an incremental checksum is added for ipv4 case.

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
examples/ipsec-secgw/ipip.h