summaryrefslogtreecommitdiff
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2017-06-16 17:30:35 -0300
committerRenato Westphal <renato@openbsd.org>2017-06-16 17:30:35 -0300
commit522faa1f8be658c18284e3e9e5dcaefdf92c4c57 (patch)
treecc38cdb248e917662c5aaf7148beb4dad187ef07 /ldpd/interface.c
parent8f942af9026f306e2eeca322b019e2c3c17d8000 (diff)
ldpd: fix fallouts from the rb-tree conversion
Signed-off-by: Renato Westphal <renato@openbsd.org>
Diffstat (limited to 'ldpd/interface.c')
-rw-r--r--ldpd/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldpd/interface.c b/ldpd/interface.c
index 527a6bc963..ac48520f7b 100644
--- a/ldpd/interface.c
+++ b/ldpd/interface.c
@@ -81,12 +81,12 @@ ldpe_if_init(struct iface *iface)
/* ipv4 */
iface->ipv4.iface = iface;
iface->ipv4.state = IF_STA_DOWN;
- RB_INIT(iface_head, &iface->ipv4.adj_tree);
+ RB_INIT(ia_adj_head, &iface->ipv4.adj_tree);
/* ipv6 */
iface->ipv6.iface = iface;
iface->ipv6.state = IF_STA_DOWN;
- RB_INIT(iface_head, &iface->ipv6.adj_tree);
+ RB_INIT(ia_adj_head, &iface->ipv6.adj_tree);
}
void
@@ -305,7 +305,7 @@ if_reset(struct iface *iface, int af)
ia = iface_af_get(iface, af);
if_stop_hello_timer(ia);
- while ((adj = RB_ROOT(iface_head, &ia->adj_tree)) != NULL)
+ while ((adj = RB_ROOT(ia_adj_head, &ia->adj_tree)) != NULL)
adj_del(adj, S_SHUTDOWN);
/* try to cleanup */