summaryrefslogtreecommitdiff
path: root/backport/backport-include/net/ip6_fib.h
blob: 55fbf3a3630e37a13da0250b6d7887a83de983c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __BACKPORT_NET_IP6_ROUTE_H
#define __BACKPORT_NET_IP6_ROUTE_H
#include_next <net/ip6_fib.h>
#include <net/ip6_route.h>
#include <linux/route.h>
#include <linux/version.h>

#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
#define rt6_nexthop LINUX_BACKPORT(rt6_nexthop)
static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt)
{
	return &rt->rt6i_gateway;
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) */

#endif /* __BACKPORT_NET_IP6_ROUTE_H */