about summary refs log tree commit
path: root/ext/rpatricia/patricia.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpatricia/patricia.h')
-rw-r--r--ext/rpatricia/patricia.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/rpatricia/patricia.h b/ext/rpatricia/patricia.h
index d4bb7ab..f4abffd 100644
--- a/ext/rpatricia/patricia.h
+++ b/ext/rpatricia/patricia.h
@@ -91,6 +91,7 @@ ascii2prefix (char *string);
 /* } */
 
 #define PATRICIA_MAXBITS 128
+#define PATRICIA_MAXSTRLEN (INET6_ADDRSTRLEN + sizeof("/128") - 1)
 #define PATRICIA_NBIT(x)        (0x80 >> ((x) & 0x7f))
 #define PATRICIA_NBYTE(x)       ((x) >> 3)