diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2024-02-06 18:34:55 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2024-02-06 18:34:55 +0100 |
commit | ff2ebdc7e1c586762b04004608fb7aaf55e245c7 (patch) | |
tree | 0132737f8a865073c4a41722058b25def47dfd6c /proto/bgp/packets.c | |
parent | f40e2bc270d3635be518ae80251ce0b5c519c6f4 (diff) |
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.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r-- | proto/bgp/packets.c | 4 |
1 files 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<len; i++) t += bsprintf(t, "%02x", data[i]); } |