mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
fixup! bgp/attrs: Protocols print warnings when the size of memory they allocated is big at least as given acceptable maximum.
This commit is contained in:
parent
e193b4c5ff
commit
115dfbe20f
@ -3420,7 +3420,7 @@ using the following configuration parameters:
|
|||||||
in <rfc id="9234"> as "strict mode" and is used to enforce corresponding
|
in <rfc id="9234"> as "strict mode" and is used to enforce corresponding
|
||||||
configuration at your conterpart side. Default: disabled.
|
configuration at your conterpart side. Default: disabled.
|
||||||
|
|
||||||
<tag><label id="bgp-tx_size_warning">tx_size warning <m/switch/</tag>
|
<tag><label id="bgp-tx_size_warning">tx size warning <m/number/</tag>
|
||||||
If this option is set, the bgp protocol prints warning when it consumes at least
|
If this option is set, the bgp protocol prints warning when it consumes at least
|
||||||
given size of memory.
|
given size of memory.
|
||||||
</descrip>
|
</descrip>
|
||||||
|
@ -31,7 +31,7 @@ CF_KEYWORDS(BGP, LOCAL, NEIGHBOR, AS, HOLD, TIME, CONNECT, RETRY, KEEPALIVE,
|
|||||||
LIVED, STALE, IMPORT, IBGP, EBGP, MANDATORY, INTERNAL, EXTERNAL, SETS,
|
LIVED, STALE, IMPORT, IBGP, EBGP, MANDATORY, INTERNAL, EXTERNAL, SETS,
|
||||||
DYNAMIC, RANGE, NAME, DIGITS, AIGP, ORIGINATE, COST, ENFORCE,
|
DYNAMIC, RANGE, NAME, DIGITS, AIGP, ORIGINATE, COST, ENFORCE,
|
||||||
FIRST, FREE, VALIDATE, BASE, ROLE, ROLES, PEER, PROVIDER, CUSTOMER,
|
FIRST, FREE, VALIDATE, BASE, ROLE, ROLES, PEER, PROVIDER, CUSTOMER,
|
||||||
RS_SERVER, RS_CLIENT, REQUIRE, BGP_OTC, GLOBAL, SEND, TX_SIZE, WARNING)
|
RS_SERVER, RS_CLIENT, REQUIRE, BGP_OTC, GLOBAL, SEND, TX, SIZE, WARNING)
|
||||||
|
|
||||||
CF_ENUM(T_ENUM_BGP_ORIGIN, ORIGIN_, IGP, EGP, INCOMPLETE)
|
CF_ENUM(T_ENUM_BGP_ORIGIN, ORIGIN_, IGP, EGP, INCOMPLETE)
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ bgp_proto_start: proto_start BGP {
|
|||||||
BGP_CFG->dynamic_name = "dynbgp";
|
BGP_CFG->dynamic_name = "dynbgp";
|
||||||
BGP_CFG->check_link = -1;
|
BGP_CFG->check_link = -1;
|
||||||
BGP_CFG->send_hold_time = -1;
|
BGP_CFG->send_hold_time = -1;
|
||||||
BGP_CFG->tx_size_warning = -1;
|
BGP_CFG->tx_size_warning = 16000000;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ bgp_proto:
|
|||||||
| bgp_proto LOCAL ROLE bgp_role_name ';' { BGP_CFG->local_role = $4; }
|
| bgp_proto LOCAL ROLE bgp_role_name ';' { BGP_CFG->local_role = $4; }
|
||||||
| bgp_proto REQUIRE ROLES bool ';' { BGP_CFG->require_roles = $4; }
|
| bgp_proto REQUIRE ROLES bool ';' { BGP_CFG->require_roles = $4; }
|
||||||
| bgp_proto DISABLE RX bool ';' { BGP_CFG->disable_rx = $4; }
|
| bgp_proto DISABLE RX bool ';' { BGP_CFG->disable_rx = $4; }
|
||||||
| bgp_proto TX_SIZE WARNING expr ';' { BGP_CFG->tx_size_warning = $4; }
|
| bgp_proto TX SIZE WARNING expr ';' { BGP_CFG->tx_size_warning = $5; }
|
||||||
;
|
;
|
||||||
|
|
||||||
bgp_afi:
|
bgp_afi:
|
||||||
|
Loading…
Reference in New Issue
Block a user