mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-02-01 15:35:00 +00:00
ospf6d: clear DR info on interface_down
This fixes an issue where ospf6d would send incorrect hellos and perform wrong DR election when an interface went down and up again. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
parent
1579a67f13
commit
37531a7ec3
@ -769,6 +769,10 @@ interface_down (struct thread *thread)
|
||||
|
||||
list_delete_all_node (oi->neighbor_list);
|
||||
|
||||
/* When interface state is reset, also reset information about
|
||||
* DR election, as it is no longer valid. */
|
||||
oi->drouter = oi->prev_drouter = htonl(0);
|
||||
oi->bdrouter = oi->prev_bdrouter = htonl(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user