]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: beet: fix pseudo header length value
authorPatrick McHardy <kaber@trash.net>
Tue, 24 Apr 2007 05:39:02 +0000 (22:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2007 05:39:02 +0000 (22:39 -0700)
commit8749ac7f75ae6274412793186b32c8c627472511
treea461b4cc9ba13a4a61b84199b04dba7850bfab41
parent7c104dc5589979f681c2cc40c7a10c4e9372c590
[XFRM]: beet: fix pseudo header length value

draft-nikander-esp-beet-mode-07.txt is not entirely clear on how the length
value of the pseudo header should be calculated, it states "The Header Length
field contains the length of the pseudo header, IPv4 options, and padding in
8 octets units.", but also states "Length in octets (Header Len + 1) * 8".
draft-nikander-esp-beet-mode-08-pre1.txt [1] clarifies this, the header length
should not include the first 8 byte.

This change affects backwards compatibility, but option encapsulation didn't
work until very recently anyway.

[1] http://users.piuha.net/jmelen/BEET/draft-nikander-esp-beet-mode-08-pre1.txt

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/xfrm4_mode_beet.c