From ff2ebdc7e1c586762b04004608fb7aaf55e245c7 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 6 Feb 2024 18:34:55 +0100 Subject: [PATCH] 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. --- proto/bgp/packets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index e8cc4718..18a226fb 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