diff options
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
| -rw-r--r-- | net/ipv4/xfrm4_policy.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index e4a1483fba77..1705476670ef 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
| @@ -59,27 +59,6 @@ static int xfrm4_get_saddr(struct net *net, | |||
| 59 | return 0; | 59 | return 0; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | static struct dst_entry * | ||
| 63 | __xfrm4_find_bundle(struct flowi *fl, struct xfrm_policy *policy) | ||
| 64 | { | ||
| 65 | struct dst_entry *dst; | ||
| 66 | |||
| 67 | read_lock_bh(&policy->lock); | ||
| 68 | for (dst = policy->bundles; dst; dst = dst->next) { | ||
| 69 | struct xfrm_dst *xdst = (struct xfrm_dst *)dst; | ||
| 70 | if (xdst->u.rt.fl.oif == fl->oif && /*XXX*/ | ||
| 71 | xdst->u.rt.fl.fl4_dst == fl->fl4_dst && | ||
| 72 | xdst->u.rt.fl.fl4_src == fl->fl4_src && | ||
| 73 | xdst->u.rt.fl.fl4_tos == fl->fl4_tos && | ||
| 74 | xfrm_bundle_ok(policy, xdst, fl, AF_INET, 0)) { | ||
| 75 | dst_clone(dst); | ||
| 76 | break; | ||
| 77 | } | ||
| 78 | } | ||
| 79 | read_unlock_bh(&policy->lock); | ||
| 80 | return dst; | ||
| 81 | } | ||
| 82 | |||
| 83 | static int xfrm4_get_tos(struct flowi *fl) | 62 | static int xfrm4_get_tos(struct flowi *fl) |
| 84 | { | 63 | { |
| 85 | return fl->fl4_tos; | 64 | return fl->fl4_tos; |
| @@ -259,7 +238,6 @@ static struct xfrm_policy_afinfo xfrm4_policy_afinfo = { | |||
| 259 | .dst_ops = &xfrm4_dst_ops, | 238 | .dst_ops = &xfrm4_dst_ops, |
| 260 | .dst_lookup = xfrm4_dst_lookup, | 239 | .dst_lookup = xfrm4_dst_lookup, |
| 261 | .get_saddr = xfrm4_get_saddr, | 240 | .get_saddr = xfrm4_get_saddr, |
| 262 | .find_bundle = __xfrm4_find_bundle, | ||
| 263 | .decode_session = _decode_session4, | 241 | .decode_session = _decode_session4, |
| 264 | .get_tos = xfrm4_get_tos, | 242 | .get_tos = xfrm4_get_tos, |
| 265 | .init_path = xfrm4_init_path, | 243 | .init_path = xfrm4_init_path, |
