diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-11-16 15:54:47 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-11-16 17:10:55 +0100 |
commit | 7baf5f1f50b4e5e6d9035e1f262d2b914bc51385 (patch) | |
tree | ea6e8673dbe643c48ee6103c6f06cd8972d1e321 /backport | |
parent | 42806d068bc349e1aaacd465cccd57c35aed93d0 (diff) |
headers: add rt6_nexthop()
this is needed by bluetooth.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/net/ip6_fib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backport/backport-include/net/ip6_fib.h b/backport/backport-include/net/ip6_fib.h new file mode 100644 index 00000000..8c5d8ffa --- /dev/null +++ b/backport/backport-include/net/ip6_fib.h @@ -0,0 +1,15 @@ +#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/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 */ |