Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242609
b: refs/heads/master
c: 2d230e2
h: refs/heads/master
i:
  242607: fc788a4
v: v3
  • Loading branch information
Julian Anastasov authored and David S. Miller committed Mar 22, 2011
1 parent 35eee6c commit 92369d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6abbaa2725a43cf5d26c4c2a5dc6c0f6029ea19
refs/heads/master: 2d230e2b2c3111cf4a11619f60dcd158ae84e3ab
11 changes: 11 additions & 0 deletions trunk/net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,17 @@ static void __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap,
}
}

/* On promotion all secondaries from subnet are changing
* the primary IP, we must remove all their routes silently
* and later to add them back with new prefsrc. Do this
* while all addresses are on the device list.
*/
for (ifa = promote; ifa; ifa = ifa->ifa_next) {
if (ifa1->ifa_mask == ifa->ifa_mask &&
inet_ifa_match(ifa1->ifa_address, ifa))
fib_del_ifaddr(ifa, ifa1);
}

/* 2. Unlink it */

*ifap = ifa1->ifa_next;
Expand Down

0 comments on commit 92369d0

Please sign in to comment.