]> err.no Git - linux-2.6/commit
[IPSEC]: Add xfrm_init_state
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 20 Jun 2005 20:18:08 +0000 (13:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2005 20:18:08 +0000 (13:18 -0700)
commit72cb6962a91f2af9eef69a06198e1949c10259ae
tree3ae65d1c4e7d7cb7ac05bfc6f457312df45f6996
parent3f7a87d2fa9b42f7aade43914f060df68cc89cc7
[IPSEC]: Add xfrm_init_state

This patch adds xfrm_init_state which is simply a wrapper that calls
xfrm_get_type and subsequently x->type->init_state.  It also gets rid
of the unused args argument.

Abstracting it out allows us to add common initialisation code, e.g.,
to set family-specific flags.

The add_time setting in xfrm_user.c was deleted because it's already
set by xfrm_state_alloc.

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>
13 files changed:
include/net/xfrm.h
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv4/ipcomp.c
net/ipv4/xfrm4_tunnel.c
net/ipv6/ah6.c
net/ipv6/esp6.c
net/ipv6/ipcomp6.c
net/ipv6/xfrm6_tunnel.c
net/key/af_key.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c