aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip6_route.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip6_route.h')
-rw-r--r--include/net/ip6_route.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
index 27d83183e615..260f83f16bcf 100644
--- a/include/net/ip6_route.h
+++ b/include/net/ip6_route.h
@@ -23,6 +23,7 @@ struct route_info {
23#include <net/sock.h> 23#include <net/sock.h>
24#include <linux/ip.h> 24#include <linux/ip.h>
25#include <linux/ipv6.h> 25#include <linux/ipv6.h>
26#include <linux/route.h>
26 27
27#define RT6_LOOKUP_F_IFACE 0x00000001 28#define RT6_LOOKUP_F_IFACE 0x00000001
28#define RT6_LOOKUP_F_REACHABLE 0x00000002 29#define RT6_LOOKUP_F_REACHABLE 0x00000002
@@ -102,7 +103,6 @@ extern struct rt6_info *rt6_lookup(struct net *net,
102 int oif, int flags); 103 int oif, int flags);
103 104
104extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev, 105extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
105 struct neighbour *neigh,
106 struct flowi6 *fl6); 106 struct flowi6 *fl6);
107extern int icmp6_dst_gc(void); 107extern int icmp6_dst_gc(void);
108 108
@@ -194,4 +194,11 @@ static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
194 skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb)); 194 skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb));
195} 195}
196 196
197static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt, struct in6_addr *dest)
198{
199 if (rt->rt6i_flags & RTF_GATEWAY)
200 return &rt->rt6i_gateway;
201 return dest;
202}
203
197#endif 204#endif