diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-30 15:26:57 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-05-01 14:37:41 +0200 |
commit | 9cf67225be1dcc7fed302ec34fbfad3b040269a6 (patch) | |
tree | c597b985d13a6f1e52216c39633c0a38a090fb81 /ldpd/interface.c | |
parent | zebra: fix detection of interface renames (diff) | |
download | frr-9cf67225be1dcc7fed302ec34fbfad3b040269a6.tar.xz frr-9cf67225be1dcc7fed302ec34fbfad3b040269a6.zip |
ldpd: fixes to handle interface renames properly
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/interface.c')
-rw-r--r-- | ldpd/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/interface.c b/ldpd/interface.c index b7f473d39..f1c9925e9 100644 --- a/ldpd/interface.c +++ b/ldpd/interface.c @@ -209,7 +209,7 @@ if_addr_add(struct kaddr *ka) } } - iface = if_lookup(leconf, ka->ifindex); + iface = if_lookup_name(leconf, ka->ifname); if (iface) { if (ka->af == AF_INET6 && IN6_IS_ADDR_LINKLOCAL(&ka->addr.v6)) iface->linklocal = ka->addr.v6; @@ -229,7 +229,7 @@ if_addr_del(struct kaddr *ka) struct if_addr *if_addr; struct nbr *nbr; - iface = if_lookup(leconf, ka->ifindex); + iface = if_lookup_name(leconf, ka->ifname); if (iface) { if (ka->af == AF_INET6 && IN6_ARE_ADDR_EQUAL(&iface->linklocal, &ka->addr.v6)) |