86e8e5babb1a1ef7ce4307384af03a2e44a88727
[sliver-openvswitch.git] / datapath / linux / compat / include / net / route.h
1 #ifndef __NET_ROUTE_WRAPPER_H
2 #define __NET_ROUTE_WRAPPER_H 1
3
4 #include_next <net/route.h>
5
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
8
9 #define ip_route_output_key(net, rp, flp) \
10                 ip_route_output_key((rp), (flp))
11
12 #endif /* linux kernel < 2.6.25 */
13
14 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
15 static inline int ip4_dst_hoplimit(const struct dst_entry *dst)
16 {
17         return dst_metric(dst, RTAX_HOPLIMIT);
18 }
19 #endif
20
21 #endif