summaryrefslogtreecommitdiffstats
path: root/ip6t_NPTV6_common.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-11-10 23:15:20 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-11-12 09:25:51 +0100
commit1f198582c6f73bd22a27e8bc0c3930fcd32702ba (patch)
treea11f689225505d9c4e693cab750b3b133ccb3eac /ip6t_NPTV6_common.h
parent86a5d1878d33a974289d61bcab5fc5d8d05c9c42 (diff)
downloadNPTv6-1f198582c6f73bd22a27e8bc0c3930fcd32702ba.tar
NPTv6-1f198582c6f73bd22a27e8bc0c3930fcd32702ba.zip
Make ICMP errors work on kernels older than 2.6.34
Diffstat (limited to 'ip6t_NPTV6_common.h')
-rw-r--r--ip6t_NPTV6_common.h5
1 files changed, 5 insertions, 0 deletions
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)
{