]> err.no Git - linux-2.6/commit
[IPSEC]: Add xfrm_state_afinfo->init_flags
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 20 Jun 2005 20:19:41 +0000 (13:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2005 20:19:41 +0000 (13:19 -0700)
commitd094cd83c06e06e01d8edb540555f3f64e4081c2
treec9aad8ebaebbf0cde7c535bb764a6d6e859125fb
parent72cb6962a91f2af9eef69a06198e1949c10259ae
[IPSEC]: Add xfrm_state_afinfo->init_flags

This patch adds the xfrm_state_afinfo->init_flags hook which allows
each address family to perform any common initialisation that does
not require a corresponding destructor call.

It will be used subsequently to set the XFRM_STATE_NOPMTUDISC flag
in IPv4.

It also fixes up the error codes returned by xfrm_init_state.

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/net/xfrm.h
net/xfrm/xfrm_state.c