From 2f30cb25747dc9657046c59ca1f378203192de26 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Sun, 16 Oct 2022 15:19:37 +0000 Subject: ospfd/ospfclient: add option to flush/withdrawal with zero length default behavior is unchanged, i.e., to not zero Signed-off-by: Lou Berger --- ospfclient/ospf_apiclient.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ospfclient/ospf_apiclient.c') diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index ae07724da2..05c5e7789d 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -482,7 +482,8 @@ int ospf_apiclient_lsa_originate(struct ospf_apiclient *oclient, int ospf_apiclient_lsa_delete(struct ospf_apiclient *oclient, struct in_addr addr, uint8_t lsa_type, - uint8_t opaque_type, uint32_t opaque_id) + uint8_t opaque_type, uint32_t opaque_id, + uint8_t flags) { struct msg *msg; int rc; @@ -497,7 +498,7 @@ int ospf_apiclient_lsa_delete(struct ospf_apiclient *oclient, /* opaque_id is in host byte order and will be converted * to network byte order by new_msg_delete_request */ msg = new_msg_delete_request(ospf_apiclient_get_seqnr(), addr, lsa_type, - opaque_type, opaque_id); + opaque_type, opaque_id, flags); rc = ospf_apiclient_send_request(oclient, msg); return rc; -- cgit v1.2.3