bglibs
|
Data Structures | |
struct | ipv4addr |
Typedefs | |
typedef uint16 | ipv4port |
Functions | |
int | ipv4_parse (const char *s, ipv4addr *addr, const char **end) __DEPRECATED__ |
const char * | ipv4_scan (const char *s, ipv4addr *addr) |
const char * | ipv4_format (const ipv4addr *addr) |
const char * | ipv4_format_reverse (const ipv4addr *addr) |
unsigned | fmt_ipv4addr (char *buffer, const ipv4addr *addr) |
unsigned | fmt_ipv4addr_reverse (char *buffer, const ipv4addr *addr) |
Variables | |
const ipv4addr | IPV4ADDR_ANY |
const ipv4addr | IPV4ADDR_BROADCAST |
const ipv4addr | IPV4ADDR_LOOPBACK |
typedef uint16 ipv4port |
IPv4 port number.
unsigned fmt_ipv4addr | ( | char * | buffer, |
const ipv4addr * | addr | ||
) |
Produce a formatted string from an IPv4 address.
The given buffer must be at least 15 bytes long, or 16 bytes if it needs to contain the standard trailing NUL
byte.
References ipv4addr::addr.
Referenced by ipv4_format().
unsigned fmt_ipv4addr_reverse | ( | char * | buffer, |
const ipv4addr * | addr | ||
) |
Produce a reverse-formatted string from an IPv4 address.
The given buffer must be at least 15 bytes long, or 16 bytes if it needs to contain the standard trailing NUL
byte.
References ipv4addr::addr.
Referenced by ipv4_format_reverse().
const char* ipv4_format | ( | const ipv4addr * | addr | ) |
Produce a formatted C string from an IPv4 address.
References fmt_ipv4addr().
const char* ipv4_format_reverse | ( | const ipv4addr * | addr | ) |
Produce a reverse-formatted C string from an IPv4 address.
References fmt_ipv4addr_reverse().
int ipv4_parse | ( | const char * | start, |
ipv4addr * | addr, | ||
const char ** | end | ||
) |
Parse an IPv4 address.
ipv4_scan
.*end
to the first character past the end of the address. References ipv4_scan().
const char* ipv4_scan | ( | const char * | start, |
ipv4addr * | addr | ||
) |
Scan a C string for an IPv4 address.
NULL
if parsing failed, otherwise a pointer to the first character after the end of the address. References ipv4addr::addr.
Referenced by dns_ip4_r(), dns_ip6_r(), ipv4_parse(), and ipv6_scan().
|
extern |
IPv4 "any" address constant.
|
extern |
IPv4 broadcast address constant.
|
extern |
IPv4 loopback address constant.