1 #ifndef __NET_IP6_ROUTE_WRAPPER
2 #define __NET_IP6_ROUTE_WRAPPER
7 #include_next<net/ip6_route.h>
9 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39)
12 struct dst_entry *rpl_ip6_route_output(struct net *net, const struct sock *sk,
17 memset(&fl, 0, sizeof(fl));
18 fl.oif = fl6->flowi6_oif;
19 fl.fl6_dst = fl6->daddr;
20 fl.fl6_src = fl6->saddr;
21 fl.mark = fl6->flowi6_mark;
22 fl.proto = fl6->flowi6_proto;
24 return ip6_route_output(net, (struct sock *) sk, &fl);
26 #define ip6_route_output rpl_ip6_route_output
28 #define ip6_dst_hoplimit(dst) dst_metric(dst, RTAX_HOPLIMIT)