[IPSEC]: Replace x->type->{local,remote}_addr with flags
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:36:51 +0000 (21:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:41 +0000 (14:53 -0800)
commitf04e7e8d7f175c05bbde3ae748bf2541da53721d
tree0e9a61e66fa507fc389d3e85917eaeb614cc9525
parentfff693888012806370c98c601fbaa141fb12dfca
[IPSEC]: Replace x->type->{local,remote}_addr with flags

The functions local_addr and remote_addr are more than what they're
needed for.  The same thing can be done easily with flags on the type
object.  This patch does that and simplifies the wrapper functions in
xfrm6_policy accordingly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv6/mip6.c
net/ipv6/xfrm6_policy.c