From: Patrick McHardy <kaber@trash.net>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: netfilter-devel@vger.kernel.org, netdev@vger.kernel.org,
containers@osdl.org
Subject: Re: [PATCH 1/7] netns ebtables: part 1
Date: Thu, 16 Oct 2008 15:12:03 +0200 [thread overview]
Message-ID: <48F73DA3.1030401@trash.net> (raw)
In-Reply-To: <20081015042014.GE24058@x200.localdomain>
[-- Attachment #1: Type: text/plain, Size: 926 bytes --]
Alexey Dobriyan wrote:
> One needs to add ".netns_ok = 1" to igmp_protocol to test all of this
> with ebtables() in netns.
> -------------------------------------------------
> [PATCH 1/7] netns ebtables: part 1
>
> * make list of ebt_tables per-netns
> * propagate netns from userspace, register table in passed netns
> * temporarily register every ebt_table in init_net
I'm not queuing patches for 2.6.29 yet, please resend the entire
batch once Dave opens his net-next tree again.
> --- a/include/net/netns/x_tables.h
> +++ b/include/net/netns/x_tables.h
> @@ -6,5 +6,6 @@
>
> struct netns_xt {
> struct list_head tables[NPROTO];
> + struct list_head ebt_tables;
This could just use tables[NFPROTO_BRIDGE].
BTW, I have a patch queued to change NPROTO to NFPROTO_NUMPROTO in
struct netns_xt since we've decoupled the netfilter values from
generic procotol values (attached in case you would like to add
an ACK).
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 764 bytes --]
commit c985d88e7ae4f45d50cca80033429c7270a8c185
Author: Patrick McHardy <kaber@trash.net>
Date: Thu Oct 16 13:14:26 2008 +0200
netfilter: netns: use NFPROTO_NUMPROTO instead of NUMPROTO for tables array
The netfilter families have been decoupled from regular protocol families.
Signed-off-by: Patrick McHardy <kaber@trash.net>
diff --git a/include/net/netns/x_tables.h b/include/net/netns/x_tables.h
index 0cb63ed..b809397 100644
--- a/include/net/netns/x_tables.h
+++ b/include/net/netns/x_tables.h
@@ -2,9 +2,9 @@
#define __NETNS_X_TABLES_H
#include <linux/list.h>
-#include <linux/net.h>
+#include <linux/netfilter.h>
struct netns_xt {
- struct list_head tables[NPROTO];
+ struct list_head tables[NFPROTO_NUMPROTO];
};
#endif
next prev parent reply other threads:[~2008-10-16 13:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 4:20 [PATCH 1/7] netns ebtables: part 1 Alexey Dobriyan
2008-10-15 4:25 ` Alexey Dobriyan
2008-10-16 13:18 ` Patrick McHardy
2008-10-16 13:12 ` Patrick McHardy [this message]
2008-10-16 19:39 ` Alexey Dobriyan
2008-10-17 11:57 ` Patrick McHardy
-- strict thread matches above, loose matches on Subject: below --
2008-10-28 20:58 Alexey Dobriyan
2008-10-29 8:53 ` Patrick McHardy
2008-10-29 13:45 Alexey Dobriyan
2008-11-04 13:23 ` Patrick McHardy
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=48F73DA3.1030401@trash.net \
--to=kaber@trash.net \
--cc=adobriyan@gmail.com \
--cc=containers@osdl.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.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.