diff options
-rw-r--r-- | include/net/ip6_route.h | 2 | ||||
-rw-r--r-- | net/ipv6/route.c | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 5e91b72fc718..9c9399c98616 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -70,6 +70,8 @@ extern void ip6_route_input(struct sk_buff *skb); | |||
70 | extern struct dst_entry * ip6_route_output(struct net *net, | 70 | extern struct dst_entry * ip6_route_output(struct net *net, |
71 | const struct sock *sk, | 71 | const struct sock *sk, |
72 | struct flowi6 *fl6); | 72 | struct flowi6 *fl6); |
73 | extern struct dst_entry * ip6_route_lookup(struct net *net, | ||
74 | struct flowi6 *fl6, int flags); | ||
73 | 75 | ||
74 | extern int ip6_route_init(void); | 76 | extern int ip6_route_init(void); |
75 | extern void ip6_route_cleanup(void); | 77 | extern void ip6_route_cleanup(void); |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 1138b0a5566d..ab48b02eb56a 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -658,6 +658,13 @@ out: | |||
658 | 658 | ||
659 | } | 659 | } |
660 | 660 | ||
661 | struct dst_entry * ip6_route_lookup(struct net *net, struct flowi6 *fl6, | ||
662 | int flags) | ||
663 | { | ||
664 | return fib6_rule_lookup(net, fl6, flags, ip6_pol_route_lookup); | ||
665 | } | ||
666 | EXPORT_SYMBOL_GPL(ip6_route_lookup); | ||
667 | |||
661 | struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr, | 668 | struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr, |
662 | const struct in6_addr *saddr, int oif, int strict) | 669 | const struct in6_addr *saddr, int oif, int strict) |
663 | { | 670 | { |