summaryrefslogtreecommitdiff
path: root/lib/ip.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ip.h')
-rw-r--r--lib/ip.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ip.h b/lib/ip.h
index 1834db4f..7a31dad0 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -33,6 +33,10 @@
#define IP4_MAX_PREFIX_LENGTH 32
#define IP6_MAX_PREFIX_LENGTH 128
+#define IP4_MAX_TEXT_LENGTH 15 /* "255.255.255.255" */
+#define IP6_MAX_TEXT_LENGTH 39 /* "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" */
+#define IPA_MAX_TEXT_LENGTH 39
+
#define IP4_MIN_MTU 576
#define IP6_MIN_MTU 1280
@@ -42,12 +46,6 @@
#define IP6_HEADER_LENGTH 40
#define UDP_HEADER_LENGTH 8
-#ifdef IPV6
-#define STD_ADDRESS_P_LENGTH 39
-#else
-#define STD_ADDRESS_P_LENGTH 15
-#endif
-
#ifdef DEBUGGING