From 86a5d1878d33a974289d61bcab5fc5d8d05c9c42 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 10 Nov 2011 09:29:22 +0100 Subject: Add support for older kernel and iptables versions --- ip6t_NPTV6_common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ip6t_NPTV6_common.h') 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) -- cgit v1.2.3