]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitdfa19a0fc1281a14e0c7bc873d926e4364203559
tree0e9a61e66fa507fc389d3e85917eaeb614cc9525
parent9ded9919339f0e0b38b0f759aea62417ec9f8f12
[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