summaryrefslogtreecommitdiff
path: root/ospfd/ospf_apiserver.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2022-10-16 15:19:37 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2022-10-29 14:38:46 +0000
commit3e95e20a6acb39c543261a36921de4fca23fdec9 (patch)
treee6b7034228089fea1d19cdc34866c29fc35749b6 /ospfd/ospf_apiserver.c
parentd6eda57ab057d3c44373428a3e23c5c53e4bc105 (diff)
ospfd/ospfclient: add option to flush/withdrawal with zero length
default behavior is unchanged, i.e., to not zero Signed-off-by: Lou Berger <lberger@labn.net> (cherry picked from commit 2f30cb25747dc9657046c59ca1f378203192de26)
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r--ospfd/ospf_apiserver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 684e4c3d5b..0c2ee0c4f8 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -1997,6 +1997,11 @@ int ospf_apiserver_handle_delete_request(struct ospf_apiserver *apiserv,
goto out;
}
+ if (IS_DEL_ZERO_LEN_LSA(dmsg)) {
+ /* minimize the size of the withdrawal: */
+ old->opaque_zero_len_delete = 1;
+ }
+
/* Schedule flushing of LSA from LSDB */
/* NB: Multiple scheduling will produce a warning message, but harmless.
*/