We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b2c8f commit 958279dCopy full SHA for 958279d
src/route.h
@@ -59,17 +59,15 @@
59
# define HAVE_ROUTE_METRIC 1
60
# endif
61
#endif
62
-#ifndef HAVE_ROUTE_LIFETIME
63
-# if defined(__linux__)
64
-# define HAVE_ROUTE_LIFETIME 1 /* For IPv6 routes only */
65
-# endif
66
-#endif
67
68
#ifdef __linux__
69
# include <linux/version.h> /* RTA_PREF is only an enum.... */
70
# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
71
# define HAVE_ROUTE_PREF
72
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
+# define HAVE_ROUTE_LIFETIME /* For IPv6 routes only */
+# endif
73
74
75
#if defined(__OpenBSD__) || defined (__sun)
0 commit comments