]>
Commit | Line | Data |
---|---|---|
db12f2fc JG |
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 | ||
48cad9dc JG |
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 | ||
db12f2fc | 21 | #endif |