summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-29 14:47:43 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-30 11:51:21 +0300
commitcbf32f74ef26de9c4b4eaa128b25d35d2c55b809 (patch)
tree3784884b4e809eebb8b7df8cc0e911d75c858bfc /ospfd/ospf_interface.h
parent45af60f0bbeadae78ff8f97ea638d3592e7605c9 (diff)
ospfd: fix counting of "ip ospf area" commands
Instead of trying to maintain if_ospf_cli_count, let's directly count the number of configured interfaces when it is needed. Current approach sometimes leads to an incorrect counter. Fixes #8321. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospfd/ospf_interface.h')
-rw-r--r--ospfd/ospf_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h
index a9534f543d..e2d7327381 100644
--- a/ospfd/ospf_interface.h
+++ b/ospfd/ospf_interface.h
@@ -338,6 +338,8 @@ extern void ospf_if_set_multicast(struct ospf_interface *);
extern void ospf_if_interface(struct interface *ifp);
+extern uint32_t ospf_if_count_area_params(struct interface *ifp);
+
DECLARE_HOOK(ospf_vl_add, (struct ospf_vl_data * vd), (vd));
DECLARE_HOOK(ospf_vl_delete, (struct ospf_vl_data * vd), (vd));