mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
BGP: Log unacceptable hold time as decimal number
Thanks Johannes Moos for the suggestion.
This commit is contained in:
parent
c9ff0627a7
commit
9b9d442401
@ -3152,8 +3152,8 @@ bgp_log_error(struct bgp_proto *p, u8 class, char *msg, uint code, uint subcode,
|
||||
|
||||
if (len)
|
||||
{
|
||||
/* Bad peer AS - we would like to print the AS */
|
||||
if ((code == 2) && (subcode == 2) && ((len == 2) || (len == 4)))
|
||||
/* Bad peer AS / unacceptable hold time - print the value as decimal number */
|
||||
if ((code == 2) && ((subcode == 2) || (subcode == 6)) && ((len == 2) || (len == 4)))
|
||||
{
|
||||
t += bsprintf(t, ": %u", (len == 2) ? get_u16(data) : get_u32(data));
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user