[PATCH] Include <net/ip6_checksum.h> for csum_ipv6_magic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>.

Signed-off-by: Kevin Locke <kevin@xxxxxxxxxxxxxxx>
---
 extensions/xt_ECHO.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/extensions/xt_ECHO.c b/extensions/xt_ECHO.c
index efbceff..057d81a 100644
--- a/extensions/xt_ECHO.c
+++ b/extensions/xt_ECHO.c
@@ -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"
-- 
1.7.10
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux