From bdb3fa3b9216aede64c5b982011fb04ef25c67f7 Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Fri, 21 Apr 2023 11:56:07 +0200 Subject: bgpd, lib: extend the size of the prefix string buffer BGP Link-State prefixes are special prefixes that contains a lot of data. Extend the length of the prefix string buffer in order to display properly this type of prefixes with the next commits. Signed-off-by: Louis Scalbert --- lib/prefix.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/prefix.h') diff --git a/lib/prefix.h b/lib/prefix.h index dacdbf9059..f1aff43689 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -347,6 +347,11 @@ union prefixconstptr { /* Maximum string length of the result of prefix2str */ #define PREFIX_STRLEN 80 +/* Maximum string length of the result of prefix2str for + * long string prefixes (eg. BGP Link-State) + */ +#define PREFIX_STRLEN_EXTENDED 512 + /* * Longest possible length of a (S,G) string is 34 bytes * 123.123.123.123 = 15 * 2 -- cgit v1.2.3