Go to the source code of this file.
Functions | |
bool | sbgIpNetMaskValid (sbgIpAddress netmask) |
sbgIpAddress | sbgNetworkIpFromString (const char *pBuffer) |
void | sbgNetworkIpToString (sbgIpAddress ipAddr, char *pBuffer, size_t maxSize) |
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 (host endianness). |
Definition at line 81 of file sbgNetwork.c.
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.
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.