]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: honor max prefix timer on inbound sessions 4675/head
authorMatthew Smith <mgsmith@netgate.com>
Tue, 9 Jul 2019 17:59:44 +0000 (12:59 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 10 Jul 2019 12:53:05 +0000 (07:53 -0500)
commit497b686a49452c0ed51b377eefbc0bd987e1b5a7
treeb195f0ebc40838150203ba6b00777ecd179edb6e
parentf85d5e3d972dc507cfd277a62c938d967cb28974
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