Include <net/ip6_checksum.h> for csum_ipv6_magic
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
@@ -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
Quoted 4 lines · Kevin Locke
xt_ECHOfails to build on PPC becausecsum_ipv6_magicis 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.
Quoted 7 lines · Jan Engelhardt
Quoted 4 lines · Kevin Locke
xt_ECHOfails to build on PPC becausecsum_ipv6_magicis 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!