summaryrefslogtreecommitdiffstats
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-04-30 15:26:57 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-05-01 14:37:41 +0200
commit9cf67225be1dcc7fed302ec34fbfad3b040269a6 (patch)
treec597b985d13a6f1e52216c39633c0a38a090fb81 /ldpd/interface.c
parentzebra: fix detection of interface renames (diff)
downloadfrr-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.c4
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))