mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
bgpd: Do not increment treat-as-withdraw counters if debug is enabled
Increment only if we really treat the UPDATE as withdrawn. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
bd86964db8
commit
b1b1c922a5
@ -2390,13 +2390,13 @@ static int bgp_update_receive(struct peer_connection *connection,
|
|||||||
ret = bgp_dump_attr(&attr, peer->rcvd_attr_str,
|
ret = bgp_dump_attr(&attr, peer->rcvd_attr_str,
|
||||||
sizeof(peer->rcvd_attr_str));
|
sizeof(peer->rcvd_attr_str));
|
||||||
|
|
||||||
peer->stat_upd_7606++;
|
if (attr_parse_ret == BGP_ATTR_PARSE_WITHDRAW) {
|
||||||
|
peer->stat_upd_7606++;
|
||||||
if (attr_parse_ret == BGP_ATTR_PARSE_WITHDRAW)
|
|
||||||
flog_err(
|
flog_err(
|
||||||
EC_BGP_UPDATE_RCV,
|
EC_BGP_UPDATE_RCV,
|
||||||
"%pBP rcvd UPDATE with errors in attr(s)!! Withdrawing route.",
|
"%pBP rcvd UPDATE with errors in attr(s)!! Withdrawing route.",
|
||||||
peer);
|
peer);
|
||||||
|
}
|
||||||
|
|
||||||
if (ret && bgp_debug_update(peer, NULL, NULL, 1) &&
|
if (ret && bgp_debug_update(peer, NULL, NULL, 1) &&
|
||||||
BGP_DEBUG(update, UPDATE_DETAIL)) {
|
BGP_DEBUG(update, UPDATE_DETAIL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user