summaryrefslogtreecommitdiff
path: root/ospfd/ospf_api.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_api.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_api.c')
-rw-r--r--ospfd/ospf_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c
index 59ec016f1e..9a134d033c 100644
--- a/ospfd/ospf_api.c
+++ b/ospfd/ospf_api.c
@@ -534,7 +534,7 @@ struct msg *new_msg_originate_request(uint32_t seqnum, struct in_addr ifaddr,
struct msg *new_msg_delete_request(uint32_t seqnum, struct in_addr addr,
uint8_t lsa_type, uint8_t opaque_type,
- uint32_t opaque_id)
+ uint32_t opaque_id, uint8_t flags)
{
struct msg_delete_request dmsg;
dmsg.addr = addr;
@@ -542,6 +542,7 @@ struct msg *new_msg_delete_request(uint32_t seqnum, struct in_addr addr,
dmsg.opaque_type = opaque_type;
dmsg.opaque_id = htonl(opaque_id);
memset(&dmsg.pad, 0, sizeof(dmsg.pad));
+ dmsg.flags = flags;
return msg_new(MSG_DELETE_REQUEST, &dmsg, seqnum,
sizeof(struct msg_delete_request));