summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorMike RE Mallin <mremallin@gmail.com>2024-05-21 10:27:17 -0400
committerMike RE Mallin <mremallin@gmail.com>2024-05-31 10:27:22 -0400
commita514e34e30c64d52d6bf23f27319880348c6c7f2 (patch)
tree9676451f1e6aad6ff920ec03e7d92969d775f68e /lib/prefix.h
parentf450332476e6358ccdab9810ab45b0e6f85da4be (diff)
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 48388cd019..2d679d0622 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