Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89790
b: refs/heads/master
c: 6fc6862
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Feb 29, 2008
1 parent f1c43c4 commit 40b343d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5811769c788edbf379c8b3fc65f62394d52df748
refs/heads/master: 6fc68624e524014fcd95faf726f855eb348f2e87
14 changes: 2 additions & 12 deletions trunk/net/ipv4/netfilter/ipt_MASQUERADE.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 40b343d

Please sign in to comment.