summaryrefslogtreecommitdiff
path: root/nuttx/include/arpa/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/arpa/inet.h')
-rw-r--r--nuttx/include/arpa/inet.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/include/arpa/inet.h b/nuttx/include/arpa/inet.h
index 0380c5f77..f9091ad0c 100644
--- a/nuttx/include/arpa/inet.h
+++ b/nuttx/include/arpa/inet.h
@@ -49,6 +49,13 @@
/****************************************************************************
* Public Type Definitions
****************************************************************************/
+/* Length of the string form for IP address (excludes NULL termination) */
+
+#define INET_ADDRSTRLEN 16
+
+/* Length of the string form for IPv6 address (excludes NULL termination) */
+
+#define INET6_ADDRSTRLEN 46
/* This macro to convert a 16/32-bit constant values quantity from host byte
* order to network byte order. The 16-bit version of this macro is required