netdev
[Top] [All Lists]

IPv6 auth header length calculation patch

To: netdev@xxxxxxxxxxx
Subject: IPv6 auth header length calculation patch
From: Kunihiro Ishiguro <kunihiro@xxxxxxxxxxxxxx>
Date: Sat, 04 Jan 2003 08:03:45 -0800
Cc: yoshfuji@xxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.2.92 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)
This is a USAGI patch to fix IPv6 auth header length calculation.
(I'm not USAGI member.  I'm working on IPv6 IPsec based on 2.5 code
base).

RFC2402 2.2 Payload Length
:
   This 8-bit field specifies the length of AH in 32-bit words (4-byte
   units), minus "2".  (All IPv6 extension headers, as per RFC 1883,
   encode the "Hdr Ext Len" field by first subtracting 1 (64-bit word)
   from the header length (measured in 64-bit words).  AH is an IPv6
   extension header.  However, since its length is measured in 32-bit
   words, the "Payload Length" is calculated by subtracting 2 (32 bit
   words).)  In the "standard" case of a 96-bit authentication value

Would you mind to apply this to avoid wrong header length calculation?

Attachment: ipv6-auth-hdr-length.diff
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>