summaryrefslogtreecommitdiff
path: root/ospfd/ospf_api.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-06-22 18:10:13 -0400
committerChristian Hopps <chopps@labn.net>2022-06-23 05:01:40 -0400
commit44038c7ae3fbadb0164821c19c74acbc9e30b8a6 (patch)
tree1ea2d20c7da4e0b7c1984f61cbc1cc6698dc6f2f /ospfd/ospf_api.c
parent2d088d8d535de7ef084b4583cdfda4b48a324a62 (diff)
ospfd: add router id support to ospf api
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'ospfd/ospf_api.c')
-rw-r--r--ospfd/ospf_api.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c
index 99bc6c0b03..8636db450b 100644
--- a/ospfd/ospf_api.c
+++ b/ospfd/ospf_api.c
@@ -1,6 +1,7 @@
/*
* API message handling module for OSPF daemon and client.
* Copyright (C) 2001, 2002 Ralph Keller
+ * Copyright (c) 2022, LabN Consulting, L.L.C.
*
* This file is part of GNU Zebra.
*
@@ -682,4 +683,12 @@ struct msg *new_msg_reachable_change(uint32_t seqnum, uint16_t nadd,
return msg_new(MSG_REACHABLE_CHANGE, nmsg, seqnum, len);
}
+struct msg *new_msg_router_id_change(uint32_t seqnum, struct in_addr router_id)
+{
+ struct msg_router_id_change rmsg = {.router_id = router_id};
+
+ return msg_new(MSG_ROUTER_ID_CHANGE, &rmsg, seqnum,
+ sizeof(struct msg_router_id_change));
+}
+
#endif /* SUPPORT_OSPF_API */