mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
BFD: Fix reconfiguration of neighbors
The bfd_reconfigure_neighbors() returned after first reconfigured neighbor instead of continuing with the next one. Thanks to Winston Chen for the bugreport and a patch.
This commit is contained in:
parent
ca2dacfcee
commit
4821251ebb
@ -837,10 +837,11 @@ bfd_reconfigure_neighbors(struct bfd_proto *p, struct bfd_config *new)
|
|||||||
|
|
||||||
nn->req = on->req;
|
nn->req = on->req;
|
||||||
nn->active = 1;
|
nn->active = 1;
|
||||||
return;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
bfd_stop_neighbor(p, on);
|
bfd_stop_neighbor(p, on);
|
||||||
|
next:;
|
||||||
}
|
}
|
||||||
|
|
||||||
WALK_LIST(nn, new->neigh_list)
|
WALK_LIST(nn, new->neigh_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user