Go to the source code of this file.
Classes |
|
| class | addrrange |
| Address range class. More... |
|
Defines |
|
| #define | sz_iprange 8 |
| Size of an IP range buffer. |
|
| #define | sz_ip6range 32 |
| Size of an IPv6 range buffer. |
|
| #define | sz_addrrange 33 |
| Size of an generic address range buffer. |
|
Functions |
|
| bool | txt_to_bool (const char *buff) |
| convert text to boolean |
|
| int | txt_to_negint (const char *buff) |
| convert text to numbers |
|
| int | txt_to_int (const char *buff) |
| convert text to numbers |
|
| int | txt_to_ip (char ip[4], const char *buff, bool do_portion=false) |
| convert text to ipv4 |
|
| void | txt_to_iprange (char *iprange, const char *val) |
| Convert text to an IP range. |
|
| bool | iprange_matches (char *iprange, char *ip) |
| Checks for IPv4 ranges. |
|
| int | txt_to_ipv6 (char ipv6[16], const char *buff, bool do_portion=false) |
| convert text to ipv6 |
|
| void | txt_to_ip6range (char *iprange, const char *val) |
| Convert text to an IPv6 range. |
|
| bool | ip6range_matches (char *iprange, char *ip) |
| Checks for IPv6 ranges. |
|
| void | txt_to_addrrange (char *iprange, const char *val) |
| Convert text to an address range. |
|
| bool | addrrange_matches (char *iprange, _addr *a) |
| Checks for range matches. |
|
| bool | in_addrrange_list (stl_list(addrrange)&lst, _addr *a) |
| looks item up in match list |
|
| bool | in_addr_list (stl_list(_addr)&lst, _addr *a, bool match_port=false) |
| looks item up in address list |
|
| void | txt_to_email (char *target, const char *src, const _domain origin=NULL) |
| convert e-mail address to binary domain name |
|
| void | txt_to_dname (char *target, const char *src, const _domain origin=NULL) |
| convert text domain name to binary domain name |
|
| void | txt_to_addr (_addr *ret, const char *addr, int default_port=DNS_PORT, bool is_client=true) |
| convert text to address |
|
| void | txt_to_loc (char *res, char *&src) |
| convert text to LOC RR |
|
| stl_string | str_type (u_int16 type) |
| stl_string | str_qtype (u_int16 qtype) |
| stl_string | str_class (u_int16 ctype) |
| stl_string | str_qclass (u_int16 qctype) |
| stl_string | str_opcode (u_int16 opcode) |
| stl_string | str_rcode (int rcode) |
| stl_string | str_ttl (uint32_t ttl) |
| stl_string | str_loc (char *rr) |
Functions for converting free-form text to various types of data.
Definition in file lexfn.h.
|
|
Size of an generic address range buffer. The size, in characters, of an generic address range buffer. |
|
|
Size of an IPv6 range buffer. The size, in characters, of an IPv6 range buffer. |
|
|
Size of an IP range buffer. The size, in characters, of an IP range buffer. |
|
||||||||||||
|
Checks for range matches. Returns
|
|
||||||||||||||||
|
looks item up in address list This function returns true if the given address is one of the addresses in the address match list.
|
|
||||||||||||
|
looks item up in match list This function returns true if the given address matches one of the address match items of the address match list.
|
|
||||||||||||
|
Checks for IPv6 ranges. Returns
|
|
||||||||||||
|
Checks for IPv4 ranges. Returns
|
|
|
Returns string representation for the RR CLASS. |
|
|
Returns string representation for a LOC RR |
|
|
Returns string representation for the OPCODE. |
|
|
Returns string representation for the QCLASS. |
|
|
Returns string representation for the QTYPE. |
|
|
Returns string representation for the RCODE. |
|
|
Returns string representation for the ttl (e.g. 2h1m) |
|
|
Returns string representation for the RR type. |
|
||||||||||||||||||||
|
convert text to address Converts the text pointed to by addr to an _addr address structure. If the
|
|
||||||||||||
|
Convert text to an address range. Converts the buffer to an address IP range, in the form of ip[/nsig].
|
|
|
convert text to boolean Converts text to a boolean value. The following positive values are supported:
|
|
||||||||||||||||
|
convert text domain name to binary domain name Converts the domain name or in src to a binary domain name.
|
|
||||||||||||||||
|
convert e-mail address to binary domain name Converts the domain name or email address in src to a binary domain name.
|
|
|
convert text to numbers Converts text to a number. This function uses postfix operators. It doesn't support negative numbers.
|
|
||||||||||||||||
|
convert text to ipv4 Converts the text to an IPv4 address. As an extension, Poslib also supports the literal
|
|
||||||||||||
|
Convert text to an IPv6 range. Converts the buffer to an IPv6 IP range, in the form of ip[/nsig].
|
|
||||||||||||
|
Convert text to an IP range. Converts the buffer to an IPv4 IP range, in the form of ip[/nsig].
|
|
||||||||||||||||
|
convert text to ipv6 Converts the text to an IPv6 address. As an extension, Poslib also supports the literal
|
|
||||||||||||
|
convert text to LOC RR Converts the text pointed to by rr to LOC information as described in RFC 1876.
|
|
|
convert text to numbers Converts text to a number. This function uses postfix operators, and can also handle negative amounts.
|
1.3.7