diff options
| author | Christian Hopps <chopps@labn.net> | 2022-01-25 04:53:53 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2022-06-02 16:37:16 -0400 |
| commit | bd1188f904b63664c3b350ca587a04547210bf15 (patch) | |
| tree | 214445558f9542a3eeddbf2bb80f1b0d7b88783c | |
| parent | 97355a6d92759c712b018023f67d07c4726e8c14 (diff) | |
ospfd: api: always ready to receive opaque from client
Signed-off-by: Christian Hopps <chopps@labn.net>
| -rw-r--r-- | ospfd/ospf_apiserver.c | 37 |
1 files changed, 6 insertions, 31 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 1d42d2c69d..7c3fef4536 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -1562,45 +1562,20 @@ struct ospf_lsa *ospf_apiserver_opaque_lsa_new(struct ospf_area *area, int ospf_apiserver_is_ready_type9(struct ospf_interface *oi) { - /* Type 9 opaque LSA can be originated if there is at least one - active opaque-capable neighbor attached to the outgoing - interface. */ - - return (ospf_nbr_count_opaque_capable(oi) > 0); + /* We can always handle getting opaque's even if we can't flood them */ + return 1; } int ospf_apiserver_is_ready_type10(struct ospf_area *area) { - /* Type 10 opaque LSA can be originated if there is at least one - interface belonging to the area that has an active opaque-capable - neighbor. */ - struct listnode *node, *nnode; - struct ospf_interface *oi; - - for (ALL_LIST_ELEMENTS(area->oiflist, node, nnode, oi)) - /* Is there an active neighbor attached to this interface? */ - if (ospf_apiserver_is_ready_type9(oi)) - return 1; - - /* No active neighbor in area */ - return 0; + /* We can always handle getting opaque's even if we can't flood them */ + return 1; } int ospf_apiserver_is_ready_type11(struct ospf *ospf) { - /* Type 11 opaque LSA can be originated if there is at least one - interface - that has an active opaque-capable neighbor. */ - struct listnode *node, *nnode; - struct ospf_interface *oi; - - for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi)) - /* Is there an active neighbor attached to this interface? */ - if (ospf_apiserver_is_ready_type9(oi)) - return 1; - - /* No active neighbor at all */ - return 0; + /* We can always handle getting opaque's even if we can't flood them */ + return 1; } |
