2 parents c52e1aa + d304815 commit 047398bCopy full SHA for 047398b
1 file changed
holo-vrrp/src/events.rs
@@ -95,9 +95,12 @@ pub(crate) fn process_vrrp_packet(
95
96
// RFC 3768: Section 6.4.2 ("If an ADVERTISEMENT is received")
97
match instance.state.state {
98
- fsm::State::Initialize => {
99
- unreachable!()
100
- }
+ // An advertisement can still be delivered while the router is in the
+ // Initialize state: the receive task may have enqueued the packet just
+ // before the instance was shut down and transitioned back to
101
+ // Initialize. Ignore it rather than treating it as unreachable, which
102
+ // would panic the process.
103
+ fsm::State::Initialize => {}
104
fsm::State::Backup => {
105
if packet.priority == 0 {
106
let duration =
0 commit comments