]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_packet.c
ospfd: preserve DR status across graceful restarts
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 8 Oct 2021 02:45:31 +0000 (23:45 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 8 Oct 2021 12:13:37 +0000 (09:13 -0300)
commitab6edbfeef365c7d598e5c171bfcc63687979129
treeed508be066e945548ec0f042c26662de1b6eac3f
parent1c50c7243fee32d18b9f5fd0ab2380f850e3debc
ospfd: preserve DR status across graceful restarts

RFC 3623 says:
 "If the restarting router determines that it was the Designated
 Router on a given segment prior to the restart, it elects
 itself as the Designated Router again.  The restarting router
 knows that it was the Designated Router if, while the
 associated interface is in Waiting state, a Hello packet is
 received from a neighbor listing the router as the Designated
 Router".

Implement that logic when processing Hello messages to ensure DR
interfaces will preserve their DR status across a graceful restart.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospfd/ospf_packet.c