BGP: Log unacceptable hold time as decimal number
Thanks Johannes Moos for the suggestion.
This commit is contained in:
parent
4c19a8a984
commit
937ebf2536
1 changed files with 2 additions and 2 deletions
|
@ -3152,8 +3152,8 @@ bgp_log_error(struct bgp_proto *p, u8 class, char *msg, uint code, uint subcode,
|
||||||
|
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
/* Bad peer AS - we would like to print the AS */
|
/* Bad peer AS / unacceptable hold time - print the value as decimal number */
|
||||||
if ((code == 2) && (subcode == 2) && ((len == 2) || (len == 4)))
|
if ((code == 2) && ((subcode == 2) || (subcode == 6)) && ((len == 2) || (len == 4)))
|
||||||
{
|
{
|
||||||
t += bsprintf(t, ": %u", (len == 2) ? get_u16(data) : get_u32(data));
|
t += bsprintf(t, ": %u", (len == 2) ? get_u16(data) : get_u32(data));
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue