summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.h
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2020-10-14 12:50:53 +0100
committerPat Ruddy <pat@voltanet.io>2021-02-02 09:37:13 +0000
commitf5e04c75827de8d1ad33338caeebbc5a26cb546c (patch)
treebb1238c43b64f1dc5367857627758b33d7d7a94a /bgpd/bgp_ecommunity.h
parent62e66e55bfb4bf15a5b575be4cf41da8b49fbaaf (diff)
bgpd: expose ecommunity string length
Expose the max ecommunity string length for range checking in SNMP route-target string processing. Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
-rw-r--r--bgpd/bgp_ecommunity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h
index 6d0275a0c3..03b23fcd37 100644
--- a/bgpd/bgp_ecommunity.h
+++ b/bgpd/bgp_ecommunity.h
@@ -103,6 +103,9 @@
/* Extended Communities type flag. */
#define ECOMMUNITY_FLAG_NON_TRANSITIVE 0x40
+/* Extended Community readable string length */
+#define ECOMMUNITY_STRLEN 64
+
/* Extended Communities attribute. */
struct ecommunity {
/* Reference counter. */