* [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack
@ 2007-07-16 10:53 Cornelia Huck
2007-07-17 15:07 ` Patrick McHardy
2007-07-18 9:39 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Cornelia Huck @ 2007-07-16 10:53 UTC (permalink / raw)
To: linux-netdev
Cc: linux-kernel, netfilter-devel, David S. Miller, Jan Engelhardt,
Patrick McHardy
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>
---
net/netfilter/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 3ac39f1..3599770 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -436,6 +436,7 @@ config NETFILTER_XT_MATCH_CONNBYTES
config NETFILTER_XT_MATCH_CONNLIMIT
tristate '"connlimit" match support"'
depends on NETFILTER_XTABLES
+ depends on NF_CONNTRACK
---help---
This match allows you to match against the number of parallel
connections to a server per client IP address (or address block).
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack
2007-07-16 10:53 [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack Cornelia Huck
@ 2007-07-17 15:07 ` Patrick McHardy
2007-07-18 9:39 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2007-07-17 15:07 UTC (permalink / raw)
To: Cornelia Huck
Cc: linux-netdev, linux-kernel, netfilter-devel, David S. Miller,
Jan Engelhardt
Cornelia Huck wrote:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack
2007-07-16 10:53 [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack Cornelia Huck
2007-07-17 15:07 ` Patrick McHardy
@ 2007-07-18 9:39 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-07-18 9:39 UTC (permalink / raw)
To: cornelia.huck; +Cc: linux-netdev, linux-kernel, netfilter-devel, jengelh, kaber
From: Cornelia Huck <cornelia.huck@de.ibm.com>
Date: Mon, 16 Jul 2007 12:53:52 +0200
> Subject: [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack
> From: Cornelia Huck <cornelia.huck@de.ibm.com>
> To: <linux-netdev@vger.kernel.org>
> Cc: <linux-kernel@vger.kernel.org>, netfilter-devel@lists.netfilter.org,
> "David S. Miller" <davem@davemloft.net>,
> Jan Engelhardt <jengelh@linux01.gwdg.de>,
> Patrick McHardy <kaber@trash.net>
> Date: Mon, 16 Jul 2007 12:53:52 +0200
> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i486-pc-linux-gnu)
> Organization: IBM Deutschland Entwicklung GmbH
>
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-18 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 10:53 [PATCH] netfilter: xt_connlimit needs to depend on nf_conntrack Cornelia Huck
2007-07-17 15:07 ` Patrick McHardy
2007-07-18 9:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox