diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-28 20:45:41 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 20:45:41 -0800 |
commit | 6fc68624e524014fcd95faf726f855eb348f2e87 (patch) | |
tree | d1e17ead7e0b88d29394414d0f8f0d4bc9848047 /net/ipv4/netfilter | |
parent | 5811769c788edbf379c8b3fc65f62394d52df748 (diff) | |
download | kernel_samsung_smdk4412-6fc68624e524014fcd95faf726f855eb348f2e87.zip kernel_samsung_smdk4412-6fc68624e524014fcd95faf726f855eb348f2e87.tar.gz kernel_samsung_smdk4412-6fc68624e524014fcd95faf726f855eb348f2e87.tar.bz2 |
[NETFILTER]: Consolidate masq_inet_event and masq_device_event.
They do exactly the same job.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter')
-rw-r--r-- | net/ipv4/netfilter/ipt_MASQUERADE.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/net/ipv4/netfilter/ipt_MASQUERADE.c b/net/ipv4/netfilter/ipt_MASQUERADE.c index d80fee8..313b3fc 100644 --- a/net/ipv4/netfilter/ipt_MASQUERADE.c +++ b/net/ipv4/netfilter/ipt_MASQUERADE.c @@ -139,18 +139,8 @@ static int masq_inet_event(struct notifier_block *this, unsigned long event, void *ptr) { - const struct net_device *dev = ((struct in_ifaddr *)ptr)->ifa_dev->dev; - - if (event == NETDEV_DOWN) { - /* IP address was deleted. Search entire table for - conntracks which were associated with that device, - and forget them. */ - NF_CT_ASSERT(dev->ifindex != 0); - - nf_ct_iterate_cleanup(device_cmp, (void *)(long)dev->ifindex); - } - - return NOTIFY_DONE; + struct net_device *dev = ((struct in_ifaddr *)ptr)->ifa_dev->dev; + return masq_device_event(this, event, dev); } static struct notifier_block masq_dev_notifier = { |