From 621ee705b5a2e4e47f5436b9ad51c9ef9fa1af51 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 28 Jun 2021 16:04:17 +0200 Subject: [PATCH] ospf6d: use OSPF6_INTERFACE_LOOPBACK state The OSPF6_INTERFACE_LOOPBACK interface state wasn't entered anywhere, even if the interface was OSPF6_IFTYPE_LOOPBACK. Fix. Signed-off-by: David Lamparter --- ospf6d/ospf6_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index b52d6af90e..2727f01d85 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -821,7 +821,9 @@ int interface_up(struct thread *thread) } /* decide next interface state */ - if (oi->type == OSPF_IFTYPE_POINTOPOINT) { + if (oi->type == OSPF_IFTYPE_LOOPBACK) { + ospf6_interface_state_change(OSPF6_INTERFACE_LOOPBACK, oi); + } else if (oi->type == OSPF_IFTYPE_POINTOPOINT) { ospf6_interface_state_change(OSPF6_INTERFACE_POINTTOPOINT, oi); } else if (oi->priority == 0) ospf6_interface_state_change(OSPF6_INTERFACE_DROTHER, oi); -- 2.39.5