Skip to contentSkip to conversation

Include <net/ip6_checksum.h> for csum_ipv6_magic

PATCH In review Kevin Locke 2 participants 3 messages Jul 3, 2012 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Include <net/ip6_checksum.h> for csum_ipv6_magic

xt_ECHO fails to build on PPC because csum_ipv6_magic is declared in <net/ip6_checksum.h>, which is not implicitly included from other headers on PPC causing build failures due to this function being undefined. So, include this header explicitly.

Note: Same cause as <http://bugzilla.netfilter.org/show_bug.cgi?id=307>.

---
 extensions/xt_ECHO.c |    1 +
 1 file changed, 1 insertion(+)
extensions/xt_ECHO.c +1 -0
index efbceff..057d81a 100644
@@ -18,6 +18,7 @@
 #	include <linux/netfilter_bridge.h>
 #endif
 #include <net/ip.h>
+#include <net/ip6_checksum.h>
 #include <net/ip6_route.h>
 #include <net/route.h>
 #include "compat_xtables.h"
Signature · 1 line
1.7.10
#1 lore raw
Quoted 4 lines · Kevin Locke

xt_ECHO fails to build on PPC because csum_ipv6_magic is declared in <net/ip6_checksum.h>, which is not implicitly included from other headers on PPC causing build failures due to this function being undefined. So, include this header explicitly.

Fixed.

#2 lore raw
Quoted 7 lines · Jan Engelhardt
Quoted 4 lines · Kevin Locke

xt_ECHO fails to build on PPC because csum_ipv6_magic is declared in <net/ip6_checksum.h>, which is not implicitly included from other headers on PPC causing build failures due to this function being undefined. So, include this header explicitly.

Fixed.

Great. Thanks!