netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netfilter: nft_reject_bridge: fix missing declaration of csum_ipv6_magic
@ 2014-11-03  3:11 Jeff Mahoney
  0 siblings, 0 replies; only message in thread
From: Jeff Mahoney @ 2014-11-03  3:11 UTC (permalink / raw)
  To: Pablo Neira Ayuso, netfilter-devel

Commit 523b929d544 (netfilter: nft_reject_bridge: don't use IP stack
to reject traffic) adds a use of csum_ipv6_magic but doesn't include
net/ip6_checksum.h. On architectures that don't define _HAVE_ARCH_IPV6_CSUM,
like ppc and s390x, we don't get the prototype declared and the build
fails.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 net/bridge/netfilter/nft_reject_bridge.c |    1 +
 1 file changed, 1 insertion(+)

--- a/net/bridge/netfilter/nft_reject_bridge.c
+++ b/net/bridge/netfilter/nft_reject_bridge.c
@@ -18,6 +18,7 @@
 #include <net/netfilter/ipv6/nf_reject.h>
 #include <linux/ip.h>
 #include <net/ip.h>
+#include <net/ip6_checksum.h>
 #include <linux/netfilter_bridge.h>
 #include "../br_private.h"
 

-- 
Jeff Mahoney
SUSE Labs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-03  3:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03  3:11 [PATCH] netfilter: nft_reject_bridge: fix missing declaration of csum_ipv6_magic Jeff Mahoney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).