Commit 7b02d8d
committed
ospfv3: fix: dispatch the BackupSeen event computed from received Hellos
processHelloPacket correctly computed backupSeen per RFC 2328 Section 9.5 --
the neighbor declares itself Backup Designated Router, or declares itself
Designated Router with no Backup, while this interface is in Waiting -- but
then discarded the flag ((void)backupSeen). A router joining a broadcast
segment with an already-established DR therefore always sat out the full
40s wait timer instead of ending Waiting immediately. Dispatch
BACKUP_SEEN_EVENT to the interface FSM like OSPFv2's HelloHandler does.
All 11 ospfv3 + BgpAndOspfv3 fingerprints are byte-identical: in the shipped
examples all routers start synchronized, so every interface leaves Waiting via
the wait timer before any DR is established, and the reconnect scenarios
rejoin two-router segments whose DR state was reset. The event matters for
staggered starts (startupTime) and for routers joining live segments.1 parent 8cee85c commit 7b02d8d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | 307 | | |
309 | 308 | | |
310 | 309 | | |
| |||
525 | 524 | | |
526 | 525 | | |
527 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
528 | 532 | | |
529 | 533 | | |
530 | 534 | | |
| |||
0 commit comments