]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-wfp: Don't redefine IPPROTO_IP* if already defined
authorTobias Brunner <tobias@strongswan.org>
Wed, 22 Mar 2017 16:59:20 +0000 (17:59 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 23 Mar 2017 17:29:18 +0000 (18:29 +0100)
src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c

index 6ad26b72fc83b05016b79493d0923cc73970457c..774fcf5c81b2eab06c1fb6936b734ed691e40ae8 100644 (file)
 #include <collections/hashtable.h>
 #include <processing/jobs/callback_job.h>
 
+#ifndef IPPROTO_IPIP
 #define IPPROTO_IPIP 4
+#endif
+#ifndef IPPROTO_IPV6
 #define IPPROTO_IPV6 41
+#endif
 
 typedef struct private_kernel_wfp_ipsec_t private_kernel_wfp_ipsec_t;