aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2016-09-16 15:59:08 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-19 01:25:22 -0400
commitd409b84768037ad03d1d73538d99fb902adf7365 (patch)
treef87590d64ea9e613b58140647e6aa9ad2b559473 /net
parenta5ea31f573098d39e6b29327d01c986607e118cb (diff)
ipv6: Export p6_route_input_lookup symbol
Make ip6_route_input_lookup available outside of ipv6 the module similar to ip_route_input_noref in the IPv4 world. Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/route.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index ad4a7ff301fc..4dab585f7642 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1147,15 +1147,16 @@ static struct rt6_info *ip6_pol_route_input(struct net *net, struct fib6_table *
1147 return ip6_pol_route(net, table, fl6->flowi6_iif, fl6, flags); 1147 return ip6_pol_route(net, table, fl6->flowi6_iif, fl6, flags);
1148} 1148}
1149 1149
1150static struct dst_entry *ip6_route_input_lookup(struct net *net, 1150struct dst_entry *ip6_route_input_lookup(struct net *net,
1151 struct net_device *dev, 1151 struct net_device *dev,
1152 struct flowi6 *fl6, int flags) 1152 struct flowi6 *fl6, int flags)
1153{ 1153{
1154 if (rt6_need_strict(&fl6->daddr) && dev->type != ARPHRD_PIMREG) 1154 if (rt6_need_strict(&fl6->daddr) && dev->type != ARPHRD_PIMREG)
1155 flags |= RT6_LOOKUP_F_IFACE; 1155 flags |= RT6_LOOKUP_F_IFACE;
1156 1156
1157 return fib6_rule_lookup(net, fl6, flags, ip6_pol_route_input); 1157 return fib6_rule_lookup(net, fl6, flags, ip6_pol_route_input);
1158} 1158}
1159EXPORT_SYMBOL_GPL(ip6_route_input_lookup);
1159 1160
1160void ip6_route_input(struct sk_buff *skb) 1161void ip6_route_input(struct sk_buff *skb)
1161{ 1162{