From cbf32f74ef26de9c4b4eaa128b25d35d2c55b809 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 29 Mar 2021 14:47:43 +0300 Subject: 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 --- ospfd/ospf_interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospfd/ospf_interface.h') 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)); -- cgit v1.2.3