]> err.no Git - linux-2.6/commit
[IPV6]: Fix raw socket checksums with IPsec
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 3 May 2005 21:24:36 +0000 (14:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2005 21:24:36 +0000 (14:24 -0700)
commit679a87382433cf12a28f07a7d5c240f30f0daa08
tree128787f500b3a5d260fc620450865ad8a0a8c761
parent31da185d8162ae0f30a13ed945f1f4d28d158133
[IPV6]: Fix raw socket checksums with IPsec

I made a mistake in my last patch to the raw socket checksum code.
I used the value of inet->cork.length as the length of the payload.
While this works with normal packets, it breaks down when IPsec is
present since the cork length includes the extension header length.

So here is a patch to fix the length calculations.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/raw.c