]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Increase max length of notification data in error logs
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 6 Feb 2024 17:34:55 +0000 (18:34 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 6 Feb 2024 17:34:55 +0000 (18:34 +0100)
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

index e8cc4718730f31211ecad1c272109a7b0c008264..18a226fbaa5781cf1202368185e564d2664d6d8f 100644 (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]);
     }