From: Olaf Hering <olh@suse.de>
To: netdev@oss.sgi.com
Subject: Re: limited number if iptable rules on 64bit hosts
Date: Wed, 2 Feb 2005 23:25:16 +0100 [thread overview]
Message-ID: <20050202222516.GA15440@suse.de> (raw)
In-Reply-To: <20050202133851.GA9680@suse.de>
On Wed, Feb 02, Olaf Hering wrote:
>
> What buffer or sysctrl value has to change to allow more than 3445 rules
> like this (on a 64bit host with 64bit iptables)?
>
> iptables -A FORWARD -j ACCEPT
>
> setsockopt(3, SOL_IP, 0x40 /* IP_??? */,
> "filter\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 524368) =
> -1 ENOMEM (Cannot allocate memory)
it triggers the first -ENOMEM in
net/ipv4/netfilter/ip_tables.c:do_replace
sizeof(struct ipt_table_info)+SMP_ALIGN(tmp.size)*NR_CPUS == 67108992 bytes
128+524288*128==67108992
(sizeof(struct ipt_table_info) + (((tmp.size) + (1 << 7)-1) & ~((1 << 7)-1)) * 128)
hmm, no braces missing.
next prev parent reply other threads:[~2005-02-02 22:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-02 13:38 limited number if iptable rules on 64bit hosts Olaf Hering
2005-02-02 22:25 ` Olaf Hering [this message]
2005-02-02 22:38 ` Bill Rugolsky Jr.
2005-02-02 22:52 ` Olaf Hering
2005-02-03 11:19 ` Olaf Kirch
2005-02-03 18:48 ` David S. Miller
2005-02-03 18:59 ` Olaf Hering
2005-02-03 19:00 ` David S. Miller
2005-02-03 19:33 ` Bart De Schuymer
2005-02-03 21:35 ` Bill Rugolsky Jr.
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=20050202222516.GA15440@suse.de \
--to=olh@suse.de \
--cc=netdev@oss.sgi.com \
/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.