From 44038c7ae3fbadb0164821c19c74acbc9e30b8a6 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Wed, 22 Jun 2022 18:10:13 -0400 Subject: ospfd: add router id support to ospf api Signed-off-by: Christian Hopps --- ospfd/ospf_api.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ospfd/ospf_api.c') 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 */ -- cgit v1.2.3