]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: use OSPF6_INTERFACE_LOOPBACK state
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 28 Jun 2021 14:04:17 +0000 (16:04 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 20 Jul 2021 09:22:21 +0000 (11:22 +0200)
The OSPF6_INTERFACE_LOOPBACK interface state wasn't entered anywhere,
even if the interface was OSPF6_IFTYPE_LOOPBACK.  Fix.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospf6d/ospf6_interface.c

index b52d6af90ec4c424ecfaabc523c84967bcd80067..2727f01d854fcb7e19af2e772e4dc09b4aa3c73a 100644 (file)
@@ -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);