diff options
| author | Lou Berger <lberger@labn.net> | 2022-10-16 15:19:37 +0000 |
|---|---|---|
| committer | Lou Berger <lberger@labn.net> | 2022-10-21 15:27:58 +0000 |
| commit | 2f30cb25747dc9657046c59ca1f378203192de26 (patch) | |
| tree | e064c47134e510a7544f9990a92692e5e657fe4e /ospfd/ospf_apiserver.c | |
| parent | 08172828f6dc0950431e57e43b0aa2dc674cb6fe (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>
Diffstat (limited to 'ospfd/ospf_apiserver.c')
| -rw-r--r-- | ospfd/ospf_apiserver.c | 5 |
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. */ |
