[IPV4]: Fix secondary IP addresses after promotion
authorJamal Hadi Salim <hadi@cyberus.ca>
Tue, 22 Nov 2005 22:47:37 +0000 (14:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2005 22:47:37 +0000 (14:47 -0800)
commit0ff60a45678e67b2547256a636fd00c1667ce4fa
tree664625450d2821c2d22e35e3f9f22192bf41d7d4
parentc27bd492fd84c590767a3c0f9f74e637b17af138
[IPV4]: Fix secondary IP addresses after promotion

This patch fixes the problem with promoting aliases when:
a) a single primary and > 1 secondary addresses
b) multiple primary addresses each with at least one secondary address

Based on earlier efforts from Brian Pomerantz <bapper@piratehaven.org>,
Patrick McHardy <kaber@trash.net> and Thomas Graf <tgraf@suug.ch>

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/devinet.c
net/ipv4/fib_frontend.c