Commit d304815
committed
vrrp: ignore advertisements received in the Initialize state
An advertisement can reach the event handler while the VRRP router is in
the Initialize state: the receive task may enqueue a packet just before
the instance is shut down and transitioned back to Initialize. The
handler matched the Initialize state with unreachable!(), so this race
panicked the process.
Handle the Initialize state by ignoring the advertisement.
Signed-off-by: Gus Bourg <gus@bourg.net>1 parent c52e1aa commit d304815
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
0 commit comments