#include <sofia-sip/su_config.h>
Include dependency graph for hostdomain.h:
Go to the source code of this file.
Functions | |
SOFIA_BEGIN_DECLS SOFIAPUBFUN int | host_is_ip4_address (char const *string) |
Return true if string is valid IP4 address in dot-notation. | |
SOFIAPUBFUN int | host_is_ip6_address (char const *string) |
Return true if string is valid IP6 address in hex notation. | |
SOFIAPUBFUN int | host_is_ip6_reference (char const *string) |
Return true if string is valid IP6 reference, i.e. | |
SOFIAPUBFUN int | host_is_ip_address (char const *string) |
Return true if string is valid IP address. | |
SOFIAPUBFUN int | host_is_domain (char const *string) |
Return true if string is valid a domain name. | |
SOFIAPUBFUN int | host_is_valid (char const *string) |
Return true if string is valid a host name. | |
SOFIAPUBFUN int | host_is_local (char const *string) |
Returns true if string is describing a local address. | |
SOFIAPUBFUN int | host_has_domain_invalid (char const *string) |
Return true if string has domain name in "invalid." domain. | |
SOFIAPUBFUN int | host_ip6_reference (char const *string) |
This is typo. |
SOFIAPUBFUN int host_ip6_reference | ( | char const * | string | ) |
SOFIAPUBFUN int host_is_domain | ( | char const * | string | ) |
Return true if string is valid a domain name.
Valid domain name consists of alphanumeric labels separated with dot ("."). There can be a "-" in the middle of label. The last label must start with a letter.
SOFIA_BEGIN_DECLS SOFIAPUBFUN int host_is_ip4_address | ( | char const * | string | ) |
Return true if string is valid IP4 address in dot-notation.
127.1
is not considered valid IP4 address. SOFIAPUBFUN int host_is_ip6_address | ( | char const * | string | ) |
Return true if string is valid IP6 address in hex notation.
E.g., fe80::1 is a valid IP6 address.
SOFIAPUBFUN int host_is_ip6_reference | ( | char const * | string | ) |
Return true if string is valid IP6 reference, i.e.
hex notation in square brackets.
E.g., [::1] is a valid IP6 reference.
SOFIAPUBFUN int host_is_ip_address | ( | char const * | string | ) |
Return true if string is valid IP address.
Valid IP address is either a IP4 adddress in quad-octet notation, IP6 hex address or IP6 reference in square brackets ([]).
SOFIAPUBFUN int host_is_local | ( | char const * | host | ) |
Returns true if string is describing a local address.
Uses the definitions of local addresses found in RFC1700 and RFC4291.
SOFIAPUBFUN int host_is_valid | ( | char const * | string | ) |
Return true if string is valid a host name.
Check if the string is a domain name, IP address or IP6 reference.