diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-06-23 13:52:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-23 13:52:09 -0400 |
| commit | f4cb4b4126da63c490938863afdcbc232d10af31 (patch) | |
| tree | 814054eeeaef83ec4fcbf4e372779f854ac47d26 /ospfd/ospf_api.c | |
| parent | 6b1c889f29b442d1e0f14391368ac091a0ecaac9 (diff) | |
| parent | 9495c4056fef3a4c6b3d69c2fb11258d5dd8049f (diff) | |
Merge pull request #11460 from LabNConsulting/chopps/ospfapi-routerid
Chopps/ospfapi routerid
Diffstat (limited to 'ospfd/ospf_api.c')
| -rw-r--r-- | ospfd/ospf_api.c | 9 |
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 */ |
