From: Ondrej Zajicek Date: Tue, 6 Feb 2024 17:34:55 +0000 (+0100) Subject: BGP: Increase max length of notification data in error logs X-Git-Tag: v2.15~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff2ebdc7e1c586762b04004608fb7aaf55e245c7;p=thirdparty%2Fbird.git 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. --- diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index e8cc47187..18a226fba 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -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