]> err.no Git - linux-2.6/commit
[IPSEC]: Add XFRM_STATE_NOPMTUDISC flag
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 20 Jun 2005 20:21:43 +0000 (13:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2005 20:21:43 +0000 (13:21 -0700)
commitdd87147eed934eaff92869f3d158697c7239d1d2
tree5a5d59c2678767530c2a3299a70ccfc14062b347
parentd094cd83c06e06e01d8edb540555f3f64e4081c2
[IPSEC]: Add XFRM_STATE_NOPMTUDISC flag

This patch adds the flag XFRM_STATE_NOPMTUDISC for xfrm states.  It is
similar to the nopmtudisc on IPIP/GRE tunnels.  It only has an effect
on IPv4 tunnel mode states.  For these states, it will ensure that the
DF flag is always cleared.

This is primarily useful to work around ICMP blackholes.

In future this flag could also allow a larger MTU to be set within the
tunnel just like IPIP/GRE tunnels.  This could be useful for short haul
tunnels where temporary fragmentation outside the tunnel is desired over
smaller fragments inside the tunnel.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/pfkeyv2.h
include/linux/xfrm.h
net/ipv4/xfrm4_output.c
net/ipv4/xfrm4_state.c
net/key/af_key.c