summaryrefslogtreecommitdiffstats
path: root/ip6t_NPTV6_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ip6t_NPTV6_common.h')
-rw-r--r--ip6t_NPTV6_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ip6t_NPTV6_common.h b/ip6t_NPTV6_common.h
index 4a0c807..1bbcc03 100644
--- a/ip6t_NPTV6_common.h
+++ b/ip6t_NPTV6_common.h
@@ -33,6 +33,16 @@
ntohs((addr).s6_addr16[7])
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+# define xt_action_param xt_target_param
+# define CHECKENTRY_RET bool
+# define CHECKENTRY_RET_SUCCESS true
+# define CHECKENTRY_RET_EINVAL false
+#else
+# define CHECKENTRY_RET int
+# define CHECKENTRY_RET_SUCCESS 0
+# define CHECKENTRY_RET_EINVAL (-EINVAL)
+#endif
/* Ones' complement add */
static inline u_int16_t add16(u_int16_t a, u_int16_t b)