Add inet_ntop()

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4366 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-02-03 18:47:34 +00:00
parent b075ac5236
commit ae1a3fd6ed
5 changed files with 210 additions and 5 deletions
+7
View File
@@ -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