summaryrefslogtreecommitdiff
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-01 14:17:42 -0400
committerGitHub <noreply@github.com>2017-05-01 14:17:42 -0400
commit20abb742ed41aa49cd4fa08b07203b308918fbb8 (patch)
treea979da5fd849c21f1efaa4fe2d1078bf1145e4d6 /ldpd/interface.c
parentcae31a9fe06d6df7799b2687f64e90f0757856cb (diff)
parent9cf67225be1dcc7fed302ec34fbfad3b040269a6 (diff)
Merge pull request #431 from opensourcerouting/fix-iface-renames
Fix interface renames
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 7c75f3e084..7be8be755e 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))