mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 00:13:33 +08:00
Add inet_ntop()
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4366 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user