aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2007-07-18 05:38:32 -0400
committerDavid S. Miller <davem@davemloft.net>2007-07-18 05:38:32 -0400
commit3fd8f9e4b6c184d03d340bc86630f700de967fa8 (patch)
tree3871aff306c88d7c29f82ddc955568e9bb039d66
parentebd61cc042b16e6cf2486aafbfff9e4be8c213ee (diff)
[NETFILTER]: xt_connlimit needs to depend on nf_conntrack
With NF_CONNTRACK=n, NETFILTER_XT_MATCH_CONNLIMIT=m I get the following errors on current git: CC [M] net/netfilter/xt_connlimit.o In file included from net/netfilter/xt_connlimit.c:27: include/net/netfilter/nf_conntrack.h:100: error: field 'ct_general' has incomplete type include/net/netfilter/nf_conntrack.h: In function 'nf_ct_get': include/net/netfilter/nf_conntrack.h:164: error: 'const struct sk_buff' has no member named 'nfct' include/net/netfilter/nf_conntrack.h: In function 'nf_ct_put': include/net/netfilter/nf_conntrack.h:171: warning: implicit declaration of function 'nf_conntrack_put' include/net/netfilter/nf_conntrack.h: In function 'nf_ct_is_untracked': include/net/netfilter/nf_conntrack.h:253: error: 'const struct sk_buff' has no member named 'nfct' In file included from net/netfilter/xt_connlimit.c:28: include/net/netfilter/nf_conntrack_core.h: In function 'nf_conntrack_confirm': include/net/netfilter/nf_conntrack_core.h:68: error: 'struct sk_buff' has no member named 'nfct' Adding a dependency in Kconfig fixes this. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/netfilter/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 3ac39f1ec775..3599770a2473 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -436,6 +436,7 @@ config NETFILTER_XT_MATCH_CONNBYTES
436config NETFILTER_XT_MATCH_CONNLIMIT 436config NETFILTER_XT_MATCH_CONNLIMIT
437 tristate '"connlimit" match support"' 437 tristate '"connlimit" match support"'
438 depends on NETFILTER_XTABLES 438 depends on NETFILTER_XTABLES
439 depends on NF_CONNTRACK
439 ---help--- 440 ---help---
440 This match allows you to match against the number of parallel 441 This match allows you to match against the number of parallel
441 connections to a server per client IP address (or address block). 442 connections to a server per client IP address (or address block).