summaryrefslogtreecommitdiff
path: root/ospfclient/ospf_apiclient.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-10-29 16:57:34 -0500
committerGitHub <noreply@github.com>2022-10-29 16:57:34 -0500
commit109fe83ac07dbb72de340f7edfbcecfc4f0e4f06 (patch)
treea91cf19db1526a9afb5ccdf7fa2db3ecfe0dc89e /ospfclient/ospf_apiclient.c
parent99267afe94eb286cf3f55db4244982022058096a (diff)
parentd9374552cb2584cb4fdc2da407ba44e141b8436c (diff)
Merge pull request #12223 from FRRouting/mergify/bp/dev/8.4/pr-12172
OSPF opaques LSA API - fix bug with LL API delete, add option for zero data length withdrawals (backport #12172)
Diffstat (limited to 'ospfclient/ospf_apiclient.c')
-rw-r--r--ospfclient/ospf_apiclient.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c
index b5f5d77d82..4ce65e379a 100644
--- a/ospfclient/ospf_apiclient.c
+++ b/ospfclient/ospf_apiclient.c
@@ -487,8 +487,9 @@ int ospf_apiclient_lsa_originate(struct ospf_apiclient *oclient,
}
int ospf_apiclient_lsa_delete(struct ospf_apiclient *oclient,
- struct in_addr area_id, uint8_t lsa_type,
- uint8_t opaque_type, uint32_t opaque_id)
+ struct in_addr addr, uint8_t lsa_type,
+ uint8_t opaque_type, uint32_t opaque_id,
+ uint8_t flags)
{
struct msg *msg;
int rc;
@@ -502,8 +503,8 @@ 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(), area_id,
- lsa_type, opaque_type, opaque_id);
+ msg = new_msg_delete_request(ospf_apiclient_get_seqnr(), addr, lsa_type,
+ opaque_type, opaque_id, flags);
rc = ospf_apiclient_send_request(oclient, msg);
return rc;