diff options
author | Mike RE Mallin <mremallin@gmail.com> | 2024-05-21 16:27:17 +0200 |
---|---|---|
committer | Mike RE Mallin <mremallin@gmail.com> | 2024-05-31 16:27:22 +0200 |
commit | a514e34e30c64d52d6bf23f27319880348c6c7f2 (patch) | |
tree | 9676451f1e6aad6ff920ec03e7d92969d775f68e /lib/prefix.h | |
parent | tests: Extend prefix_sg print UT for IPv6 (diff) | |
download | frr-a514e34e30c64d52d6bf23f27319880348c6c7f2.tar.xz frr-a514e34e30c64d52d6bf23f27319880348c6c7f2.zip |
bgpd, lib, zebra: Extend ES_VTEP_LIST_STR_SZ to support IPv6 addresses
Signed-off-by: Mike RE Mallin <mremallin@gmail.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r-- | lib/prefix.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index 48388cd01..2d679d062 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -52,10 +52,10 @@ typedef enum { /* Maximum number of VTEPs per-ES - * XXX - temporary limit for allocating strings etc. */ -#define ES_VTEP_MAX_CNT 10 -#define ES_VTEP_LIST_STR_SZ (ES_VTEP_MAX_CNT * 16) +#define ES_VTEP_MAX_CNT 10 +#define ES_VTEP_LIST_STR_SZ (ES_VTEP_MAX_CNT * IPADDR_STRING_SIZE) -#define ETHER_ADDR_STRLEN (3*ETH_ALEN) +#define ETHER_ADDR_STRLEN (3 * ETH_ALEN) /* * there isn't a portable ethernet address type. We define our * own to simplify internal handling |