]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: Fix MTU calculation for non-ESP SAs
authorPatrick McHardy <kaber@trash.net>
Tue, 19 Jun 2007 05:30:15 +0000 (22:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2007 05:30:15 +0000 (22:30 -0700)
commit90c87addb16eaae25ff32efdb04539aa19d8bbd9
tree47325468a011757f3c4169e83d3172b744b5c9e5
parentd066ebb867cf316fa6cd07bd57145079f5a10a6e
[XFRM]: Fix MTU calculation for non-ESP SAs

My IPsec MTU optimization patch introduced a regression in MTU calculation
for non-ESP SAs, the SA's header_len needs to be subtracted from the MTU if
the transform doesn't provide a ->get_mtu() function.

Reported-and-tested-by: Marco Berizzi <pupilla@hotmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c