diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-10-10 16:44:34 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-10-10 16:44:34 -0400 |
| commit | 8b3e765d19158e3be146304d40d0563bf945310d (patch) | |
| tree | 7f6dd4300dc0d09c462d06f59bb9c6b735690602 /lib/prefix.c | |
| parent | 85a63731dc8231923796345ba8bb1843ba48d59b (diff) | |
Revert "bgpd, lib: extend the size of the prefix string buffer"
This reverts commit bdb3fa3b9216aede64c5b982011fb04ef25c67f7.
Diffstat (limited to 'lib/prefix.c')
| -rw-r--r-- | lib/prefix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index cde8677cf0..e7ce8f23ab 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -1166,7 +1166,7 @@ const char *bgp_linkstate_nlri_type_2str(uint16_t nlri_type) const char *prefix2str(union prefixconstptr pu, char *str, int size) { const struct prefix *p = pu.p; - char buf[PREFIX_STRLEN_EXTENDED]; + char buf[PREFIX2STR_BUFFER]; int byte, tmp, a, b; bool z = false; size_t l; @@ -1234,7 +1234,7 @@ const char *prefix2str(union prefixconstptr pu, char *str, int size) static ssize_t prefixhost2str(struct fbuf *fbuf, union prefixconstptr pu) { const struct prefix *p = pu.p; - char buf[PREFIX_STRLEN_EXTENDED]; + char buf[PREFIX2STR_BUFFER]; switch (p->family) { case AF_INET: @@ -1752,7 +1752,7 @@ static ssize_t printfrr_pfx(struct fbuf *buf, struct printfrr_eargs *ea, if (host_only) return prefixhost2str(buf, (struct prefix *)ptr); else { - char cbuf[PREFIX_STRLEN_EXTENDED]; + char cbuf[PREFIX_STRLEN]; prefix2str(ptr, cbuf, sizeof(cbuf)); return bputs(buf, cbuf); |
