diff options
| author | David Lamparter <equinox@diac24.net> | 2019-09-17 16:18:26 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-09-17 16:18:26 +0200 |
| commit | e59733536272459193b5a149f160db92d9d0570f (patch) | |
| tree | 787c978a52c7ecc9b70df6c20354a61f00c26ede /ospf6d/ospf6_interface.c | |
| parent | 84eb735560da869f527706b866d4d16ad3ee5549 (diff) | |
ospf6d: fix mistaken if_is_* instead of oi->type
If the user configured an interface to be in a particular mode, we need
to be consistent about that. No looking at if_is_pointopoint() or
if_is_broadcast().
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 8fd2755500..d47b22a8c4 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -772,8 +772,7 @@ int interface_up(struct thread *thread) } /* decide next interface state */ - if ((if_is_pointopoint(oi->interface)) - || (oi->type == OSPF_IFTYPE_POINTOPOINT)) { + 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); |
