0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

BGP: Increase max length of notification data in error logs

Increase max length of notification data in error logs from 16 to 128.
There is already enough space in the buffer.

Thanks to Marco d'Itri for the suggestion.
This commit is contained in:
Ondrej Zajicek 2024-02-06 18:34:55 +01:00
parent f40e2bc270
commit ff2ebdc7e1

View File

@ -3377,8 +3377,8 @@ bgp_log_error(struct bgp_proto *p, u8 class, char *msg, uint code, uint subcode,
*t++ = ':';
*t++ = ' ';
if (len > 16)
len = 16;
if (len > 128)
len = 128;
for (i=0; i<len; i++)
t += bsprintf(t, "%02x", data[i]);
}