diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2005-11-22 22:47:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-22 22:47:37 (GMT) |
commit | 0ff60a45678e67b2547256a636fd00c1667ce4fa (patch) | |
tree | 664625450d2821c2d22e35e3f9f22192bf41d7d4 /include | |
parent | c27bd492fd84c590767a3c0f9f74e637b17af138 (diff) | |
download | linux-0ff60a45678e67b2547256a636fd00c1667ce4fa.tar.xz |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/route.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/route.h b/include/net/route.h index dbe79ca..e3e5436 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -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) |