Go to the source code of this file.
Functions | |
SBG_COMMON_LIB_API bool | sbgIpNetMaskValid (sbgIpAddress netmask) |
SBG_COMMON_LIB_API sbgIpAddress | sbgNetworkIpFromString (const char *pBuffer) |
SBG_COMMON_LIB_API void | sbgNetworkIpToString (sbgIpAddress ipAddr, char *pBuffer, size_t maxSize) |
SBG_COMMON_LIB_API bool sbgIpNetMaskValid | ( | sbgIpAddress | netmask | ) |
Check if an IpV4 netmask is valid, the mask should be contiguous (1111 followed by 0)
[in] | netmask | The netmask stored in an uint32_t (host endianness). |
Definition at line 81 of file sbgNetwork.c.
SBG_COMMON_LIB_API sbgIpAddress sbgNetworkIpFromString | ( | const char * | pBuffer | ) |
Convert an ip address stored in a string of the form A.B.C.D to an sbgIpAddress object.
[in] | pBuffer | IP address as a string of the form A.B.C.D |
Definition at line 35 of file sbgNetwork.c.
SBG_COMMON_LIB_API void sbgNetworkIpToString | ( | sbgIpAddress | ipAddr, |
char * | pBuffer, | ||
size_t | maxSize | ||
) |
Convert an ip to a string of the form A.B.C.D
[in] | ipAddr | IP address to convert to a string. |
[out] | pBuffer | Pointer on an allocated buffer than can hold ip address as a string. |
[in] | maxSize | Maximum number of chars that can be stored in pBuffer including the NULL char. |
Definition at line 14 of file sbgNetwork.c.