diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-03 18:47:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-03 18:47:34 +0000 |
commit | bcbf98b13c7ee35f9fee74dd38c855cfee7fb924 (patch) | |
tree | dbcd6ebd28fca17eb215bee29e7539dabac2336d /nuttx/include/arpa | |
parent | 461a420a87186bfe26e32d23768380fc97e4d275 (diff) | |
download | px4-nuttx-bcbf98b13c7ee35f9fee74dd38c855cfee7fb924.tar.gz px4-nuttx-bcbf98b13c7ee35f9fee74dd38c855cfee7fb924.tar.bz2 px4-nuttx-bcbf98b13c7ee35f9fee74dd38c855cfee7fb924.zip |
Add inet_ntop()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4366 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/arpa')
-rw-r--r-- | nuttx/include/arpa/inet.h | 7 |
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 |