All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Beverley <andy@andybev.com>
To: netfilter-devel@lists.netfilter.org
Cc: martin.bene@icomedias.com, kraxel@bytesex.org
Subject: Connlimit and linux-2.6.17
Date: Wed, 19 Jul 2006 22:29:15 +0100	[thread overview]
Message-ID: <44BEA42B.3000304@andybev.com> (raw)

I (and others, see netfilter list) are having trouble compiling kernel 2.6.17.4 
and iptables-1.3.5-20060508 to use connlimit. Once compiled in and I run:

iptables -t mangle -A PREROUTING -p tcp -i eth0 -m \
	connlimit --connlimit-above 5 -j LOG

I get "iptables: Invalid argument", and dmesg tells me "ip_tables: connlimit 
match: invalid size 0 != 16"

The kernel and iptables are patched with connlimit from patch-o-matic-ng-20060626, 
which in turn is patched as per 
http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=3456 to update the 
connlimit patch.

I have noticed that when compiling the kernel I get error messages as
follows when compiling connlimit:

net/ipv4/netfilter/ipt_connlimit.c:211: warning: initialization from incompatible 
pointer type
net/ipv4/netfilter/ipt_connlimit.c:212: warning: initialization from incompatible 
pointer type
net/ipv4/netfilter/ipt_connlimit.c:213: warning: initialization from incompatible 
pointer type

The code in question is the highlighted lines below:

static struct ipt_match connlimit_match = {
         .name = "connlimit",
         .match = &match,               <--
         .checkentry = &check,          <--
         .destroy = &destroy,           <--
         .me = THIS_MODULE
};

The above error messages do not appear when using 2.6.15, and connlimit works.

Any ideas?

On another note, is it possible for connlimit to form part of the stable kernel? 
It is a real pain having to mess around patching each time I get a new kernel, 
especially as currently the patch-o-matic also requires patching!

Andy Beverley

             reply	other threads:[~2006-07-19 21:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 21:29 Andrew Beverley [this message]
2006-07-19 22:39 ` Connlimit and linux-2.6.17 Krzysztof Oledzki
2006-07-19 22:45   ` Andrew Beverley
2006-07-21 20:06     ` Krzysztof Oledzki
2006-07-21 20:23       ` Andrew Beverley
2006-07-21 20:32         ` Krzysztof Oledzki
2006-07-21 23:30       ` Andrew Beverley
2006-07-22  0:10       ` Andrew Beverley
2006-07-22  0:37         ` Krzysztof Oledzki
2006-07-22  9:34           ` Andrew Beverley
  -- strict thread matches above, loose matches on Subject: below --
2006-07-19 15:13 Adlan
2006-07-19 21:21 ` Andrew Beverley
2006-07-16 21:53 Andrew Beverley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44BEA42B.3000304@andybev.com \
    --to=andy@andybev.com \
    --cc=kraxel@bytesex.org \
    --cc=martin.bene@icomedias.com \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.