fehQlibs 26
Qlibs
|
handling of IPv4 addresses More...
Go to the source code of this file.
Functions | |
unsigned int | ip4_fmt (char *s, char ip[4]) |
ip4_fmt converts IPv4 address to dotted decimal string format | |
unsigned int | ia4_fmt (char *s, char ip[4]) |
ia4_fmt converts IPv4 address into DNS inverse nibble format | |
unsigned int | ip4_scan (const char *s, char ip[4]) |
ip4_scan parse IPv4 address string and convert to IP address array | |
unsigned int | ip4_scanbracket (const char *s, char ip[4]) |
ip4_scanbracket parse IPv4 address string enclosed in brackets and convert to IP address array | |
unsigned int | ip4_cidr (char *s, char ip[4], unsigned long *plen) |
ip4_cidr parse IPv4 address string concatinated with the prefix length: 192.168.1/24 | |
unsigned int | ip4_bytestring (stralloc *ipstring, char ip[4], int prefix) |
ip4_bytestring parse IPv4 address and represent as char string with length prefix | |
handling of IPv4 addresses
Definition in file ip4.c.
unsigned int ia4_fmt | ( | char * | s, |
char | ip[4] | ||
) |
unsigned int ip4_bytestring | ( | stralloc * | ipstring, |
char | ip[4], | ||
int | prefix | ||
) |
ip4_bytestring parse IPv4 address and represent as char string with length prefix
input | IPv4 char array, prefix length output: pointer to stralloc bytestring |
Definition at line 131 of file ip4.c.
unsigned int ip4_cidr | ( | char * | s, |
char | ip[4], | ||
unsigned long * | plen | ||
) |
unsigned int ip4_fmt | ( | char * | s, |
char | ip[4] | ||
) |
unsigned int ip4_scan | ( | const char * | s, |
char | ip[4] | ||
) |
unsigned int ip4_scanbracket | ( | const char * | s, |
char | ip[4] | ||
) |
ip4_scanbracket parse IPv4 address string enclosed in brackets and convert to IP address array
input | IPv4 char array output: IPv4 char array |
Definition at line 92 of file ip4.c.