diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-10 09:29:22 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-12 09:25:24 +0100 |
commit | 86a5d1878d33a974289d61bcab5fc5d8d05c9c42 (patch) | |
tree | 09bffa0fa6944682aa4c77b128b19057ce248675 /ip6t_NPTV6_common.h | |
parent | 0344f2ec310d317dc5f31e5c066a7a141d504333 (diff) | |
download | NPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.tar NPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.zip |
Add support for older kernel and iptables versions
Diffstat (limited to 'ip6t_NPTV6_common.h')
-rw-r--r-- | ip6t_NPTV6_common.h | 10 |
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) |