[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>
This commit is contained in:
committed by
David S. Miller
parent
c27bd492fd
commit
0ff60a4567
@@ -126,6 +126,9 @@ extern int ip_rt_ioctl(unsigned int cmd, void __user *arg);
|
||||
extern void ip_rt_get_source(u8 *src, struct rtable *rt);
|
||||
extern int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb);
|
||||
|
||||
struct in_ifaddr;
|
||||
extern void fib_add_ifaddr(struct in_ifaddr *);
|
||||
|
||||
static inline void ip_rt_put(struct rtable * rt)
|
||||
{
|
||||
if (rt)
|
||||
|
Reference in New Issue
Block a user