[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.10.0807211846210.21244@fbirervta.pbzchgretzou.qr>
Date: Mon, 21 Jul 2008 18:47:22 +0200 (CEST)
From: Jan Engelhardt <jengelh@...ozas.de>
To: Alexey Dobriyan <adobriyan@...il.com>
cc: kaber@...sh.net, netdev@...r.kernel.org,
netfilter-devel@...r.kernel.org, xemul@...nvz.org, den@...nvz.org,
ebiederm@...ssion.com, dlezcano@...ibm.com, benjamin.thery@...l.net
Subject: Re: [PATCH] arptables in netns for real
On Monday 2008-07-21 18:29, Alexey Dobriyan wrote:
>- int (*okfn)(struct sk_buff *))
>+static unsigned int arpt_in_hook(unsigned int hook,
>+ struct sk_buff *skb,
>+ const struct net_device *in,
>+ const struct net_device *out,
>+ int (*okfn)(struct sk_buff *))
> {
>- return arpt_do_table(skb, hook, in, out, init_net.ipv4.arptable_filter);
>+ return arpt_do_table(skb, hook, in, out,
>+ dev_net(in)->ipv4.arptable_filter);
>+}
What I dislike with this netns stuff is that you need to touch
the ->ipv4. structure if you want to add new tables and there is
no more way to dynamically add tables from 3rd party modules unless
the admin loading them is fine with having them register against
&init_net only.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists