[Top] [All Lists]

[IPV6] Fix raw socket checksums with IPsec

To: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>, David Stevens <dlstevens@xxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
Subject: [IPV6] Fix raw socket checksums with IPsec
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 Apr 2005 22:33:01 +1000
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i

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@xxxxxxxxxxxxxxxxxxx>
Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

Attachment: rawv6-csum
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [IPV6] Fix raw socket checksums with IPsec, Herbert Xu <=