From fc43415cfc8610382d4d9964b1721bbefa795028 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Thu, 27 Jul 2023 08:18:36 +0000 Subject: [PATCH] fix OSPF hello active nbr list --- code/bngblaster/src/ospf/ospf_hello.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/bngblaster/src/ospf/ospf_hello.c b/code/bngblaster/src/ospf/ospf_hello.c index 6a94bd57..8675eb90 100644 --- a/code/bngblaster/src/ospf/ospf_hello.c +++ b/code/bngblaster/src/ospf/ospf_hello.c @@ -71,7 +71,9 @@ ospf_hello_v2_encode(bbl_network_interface_s *interface, } while(ospf_neighbor) { - ospf_pdu_add_ipv4(&pdu, ospf_neighbor->router_id); + if(ospf_neighbor->state > OSPF_NBSTATE_DOWN) { + ospf_pdu_add_ipv4(&pdu, ospf_neighbor->router_id); + } ospf_neighbor = ospf_neighbor->next; } ospf_pdu_update_len(&pdu);