summaryrefslogtreecommitdiffstats
path: root/ospfclient
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2022-10-21 13:12:11 +0200
committerLou Berger <lberger@labn.net>2022-10-21 17:08:53 +0200
commit08172828f6dc0950431e57e43b0aa2dc674cb6fe (patch)
treef8d4a9379ec7fb406f452927b816646655783cb0 /ospfclient
parentMerge pull request #12094 from patrasar/pimv6_rp_linklocal (diff)
downloadfrr-08172828f6dc0950431e57e43b0aa2dc674cb6fe.tar.xz
frr-08172828f6dc0950431e57e43b0aa2dc674cb6fe.zip
ospfd: ospf_apiserver.c - fix link local opaque LSA delete
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'ospfclient')
-rw-r--r--ospfclient/ospf_apiclient.c6
-rw-r--r--ospfclient/ospf_apiclient.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c
index b5e6389d4..ae07724da 100644
--- a/ospfclient/ospf_apiclient.c
+++ b/ospfclient/ospf_apiclient.c
@@ -481,7 +481,7 @@ 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,
+ struct in_addr addr, uint8_t lsa_type,
uint8_t opaque_type, uint32_t opaque_id)
{
struct msg *msg;
@@ -496,8 +496,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);
rc = ospf_apiclient_send_request(oclient, msg);
return rc;
diff --git a/ospfclient/ospf_apiclient.h b/ospfclient/ospf_apiclient.h
index 6d1eb7f64..cbdb25014 100644
--- a/ospfclient/ospf_apiclient.h
+++ b/ospfclient/ospf_apiclient.h
@@ -94,7 +94,7 @@ int ospf_apiclient_lsa_originate(struct ospf_apiclient *oclient,
/* Synchronous request to delete opaque LSA. Parameter opaque_id is in
host byte order */
int ospf_apiclient_lsa_delete(struct ospf_apiclient *oclient,
- struct in_addr area_id, uint8_t lsa_type,
+ struct in_addr addr, uint8_t lsa_type,
uint8_t opaque_type, uint32_t opaque_id);
/* Fetch async message and handle it */