* [PATCH 33/38] netns nat: fix ipt_MASQUERADE in netns
@ 2008-08-21 22:09 adobriyan
0 siblings, 0 replies; only message in thread
From: adobriyan @ 2008-08-21 22:09 UTC (permalink / raw)
To: kaber, netfilter-devel, netdev, containers
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
net/ipv4/netfilter/ipt_MASQUERADE.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/net/ipv4/netfilter/ipt_MASQUERADE.c
+++ b/net/ipv4/netfilter/ipt_MASQUERADE.c
@@ -120,16 +120,13 @@ static int masq_device_event(struct notifier_block *this,
{
const struct net_device *dev = ptr;
- if (!net_eq(dev_net(dev), &init_net))
- return NOTIFY_DONE;
-
if (event == NETDEV_DOWN) {
/* Device was downed. Search entire table for
conntracks which were associated with that device,
and forget them. */
NF_CT_ASSERT(dev->ifindex != 0);
- nf_ct_iterate_cleanup(&init_net, device_cmp, (void *)(long)dev->ifindex);
+ nf_ct_iterate_cleanup(dev_net(dev), device_cmp, (void *)(long)dev->ifindex);
}
return NOTIFY_DONE;
--
1.5.6.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-21 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 22:09 [PATCH 33/38] netns nat: fix ipt_MASQUERADE in netns adobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox