]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: honor max prefix timer on inbound sessions
authorMatthew Smith <mgsmith@netgate.com>
Tue, 9 Jul 2019 17:59:44 +0000 (12:59 -0500)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Wed, 16 Oct 2019 05:26:32 +0000 (08:26 +0300)
commite9f55621df06c22278636a0177f25669320921e4
tree442678807b7b226c4e372b3e02727c0a8369321d
parent1f71f88093b39bcb366e3f80f809080e484dd6e0
bgpd: honor max prefix timer on inbound sessions

When using the maximum-prefix restart option with a BGP peer,
if the peer exceeds the limit of prefixes, bgpd causes the
connection to be closed and sets a timer. It will not attempt
to connect to that peer until the timer expires. But if the
peer attempts to connect to it before the timer expires, it
accepts the connection and starts exchanging routes again.

When accepting a connection from a peer, reject the connection
if the max prefix restart timer is set.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
bgpd/bgp_network.c