summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2023-04-21 11:56:07 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2023-09-18 14:57:03 +0200
commitbdb3fa3b9216aede64c5b982011fb04ef25c67f7 (patch)
tree57ca5e4069208043238c4fa518a23bd2e32630d2 /lib/prefix.h
parent0c94fb9cc853b3bcc98e8acca9fd03a036d33c92 (diff)
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 <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h5
1 files changed, 5 insertions, 0 deletions
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