]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: beet: fix IP option encapsulation
authorPatrick McHardy <kaber@trash.net>
Thu, 5 Apr 2007 22:54:02 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2007 22:54:02 +0000 (15:54 -0700)
commit73c7dd6e9b5a21092f76db2a3b772c644bad7165
tree0deedc7c6e8edbd9e0dcc255a2f64bcc8c1ab1da
parentbba7c9b5b33914f5ae5c270ff0b4f96a103ea332
[XFRM]: beet: fix IP option encapsulation

Beet mode calculates an incorrect value for the transport header location
when IP options are present, resulting in encapsulation errors.

The correct location is 4 or 8 bytes before the end of the original IP
header, depending on whether the pseudo header is padded.

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