mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
bgpd: Fix the bug that BGP MRAI does not work.
Issue: bgp_process_writes will be called when the fd is writable. And it will bgp_generate_updgrp_packets to generate the update packets no matter MRAI is set or not. Fix: bgp_generate_updgrp_packets thread will return without sending any update when MRAI timer is still running. Signed-off-by: Richard Wu <wutong23@baidu.com>
This commit is contained in:
parent
b0e9567ed1
commit
b10b6d5272
@ -408,6 +408,9 @@ int bgp_generate_updgrp_packets(struct thread *thread)
|
||||
if (peer->bgp->main_peers_update_hold)
|
||||
return 0;
|
||||
|
||||
if (peer->t_routeadv)
|
||||
return 0;
|
||||
|
||||
do {
|
||||
s = NULL;
|
||||
FOREACH_AFI_SAFI (afi, safi) {
|
||||
|
Loading…
Reference in New Issue
Block a user