diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
| commit | 62910554656cdcd6b6f84a5154c4155aae4ca231 (patch) | |
| tree | dcf14004f6fd2ef7154362ff948bfeba0f3ea92d /net/ipv6/xfrm6_policy.c | |
| parent | 22265a5c3c103cf8c50be62e6c90d045eb649e6d (diff) | |
| parent | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (diff) | |
| download | olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.tar.xz olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.zip  | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
	Documentation/feature-removal-schedule.txt
	net/ipv6/netfilter/ip6t_REJECT.c
	net/netfilter/xt_limit.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
| -rw-r--r-- | net/ipv6/xfrm6_policy.c | 31 | 
1 files changed, 0 insertions, 31 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index ae181651c75..8c452fd5cea 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c @@ -67,36 +67,6 @@ static int xfrm6_get_saddr(struct net *net,  	return 0;  } -static struct dst_entry * -__xfrm6_find_bundle(struct flowi *fl, struct xfrm_policy *policy) -{ -	struct dst_entry *dst; - -	/* Still not clear if we should set fl->fl6_{src,dst}... */ -	read_lock_bh(&policy->lock); -	for (dst = policy->bundles; dst; dst = dst->next) { -		struct xfrm_dst *xdst = (struct xfrm_dst*)dst; -		struct in6_addr fl_dst_prefix, fl_src_prefix; - -		ipv6_addr_prefix(&fl_dst_prefix, -				 &fl->fl6_dst, -				 xdst->u.rt6.rt6i_dst.plen); -		ipv6_addr_prefix(&fl_src_prefix, -				 &fl->fl6_src, -				 xdst->u.rt6.rt6i_src.plen); -		if (ipv6_addr_equal(&xdst->u.rt6.rt6i_dst.addr, &fl_dst_prefix) && -		    ipv6_addr_equal(&xdst->u.rt6.rt6i_src.addr, &fl_src_prefix) && -		    xfrm_bundle_ok(policy, xdst, fl, AF_INET6, -				   (xdst->u.rt6.rt6i_dst.plen != 128 || -				    xdst->u.rt6.rt6i_src.plen != 128))) { -			dst_clone(dst); -			break; -		} -	} -	read_unlock_bh(&policy->lock); -	return dst; -} -  static int xfrm6_get_tos(struct flowi *fl)  {  	return 0; @@ -291,7 +261,6 @@ static struct xfrm_policy_afinfo xfrm6_policy_afinfo = {  	.dst_ops =		&xfrm6_dst_ops,  	.dst_lookup =		xfrm6_dst_lookup,  	.get_saddr = 		xfrm6_get_saddr, -	.find_bundle =		__xfrm6_find_bundle,  	.decode_session =	_decode_session6,  	.get_tos =		xfrm6_get_tos,  	.init_path =		xfrm6_init_path,  |