From 1f198582c6f73bd22a27e8bc0c3930fcd32702ba Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 10 Nov 2011 23:15:20 +0100 Subject: Make ICMP errors work on kernels older than 2.6.34 --- ip6t_NPTV6_common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ip6t_NPTV6_common.h') diff --git a/ip6t_NPTV6_common.h b/ip6t_NPTV6_common.h index 1bbcc03..efb5aa5 100644 --- a/ip6t_NPTV6_common.h +++ b/ip6t_NPTV6_common.h @@ -44,6 +44,11 @@ # define CHECKENTRY_RET_EINVAL (-EINVAL) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) +# define icmpv6_send(skb, type, code, info) icmpv6_send(skb, type, code, info, NULL) +#endif + + /* Ones' complement add */ static inline u_int16_t add16(u_int16_t a, u_int16_t b) { -- cgit v1.2.3