#include <sql_auth_cache.h>
|
| static bool | calc_cidr_mask (const char *ip_arg, long *val) |
| | IP mask parsing in the CIDR format. More...
|
| |
| static bool | calc_ip_mask (const char *ip_arg, long *val) |
| | IP mask parsing in the subnet format. More...
|
| |
| static const char * | calc_ip (const char *ip_arg, long *val) |
| | IP parsing. More...
|
| |
◆ enum_ip_mask_type
IP mask type enum.
| Enumerator |
|---|
| ip_mask_type_implicit | Only IP is specified.
|
| ip_mask_type_cidr | IP specified with a mask in a CIDR form.
|
| ip_mask_type_subnet | IP specified with a mask in a form of a subnet.
|
◆ ACL_HOST_AND_IP()
| ACL_HOST_AND_IP::ACL_HOST_AND_IP |
( |
| ) |
|
|
inline |
◆ calc_cidr_mask()
| bool ACL_HOST_AND_IP::calc_cidr_mask |
( |
const char * |
ip_arg, |
|
|
long * |
val |
|
) |
| |
|
static |
IP mask parsing in the CIDR format.
- Parameters
-
| [in] | ip_arg | Buffer containing CIDR mask value. |
| [out] | val | Numeric IP mask value on success. |
- Return values
-
| false | Parsing succeeded. |
| true | Parsing failed. |
◆ calc_ip()
| const char * ACL_HOST_AND_IP::calc_ip |
( |
const char * |
ip_arg, |
|
|
long * |
val |
|
) |
| |
|
static |
IP parsing.
- Parameters
-
| [in] | ip_arg | Buffer containing IP value. |
| [out] | val | Numeric IP value on success. |
- Return values
-
| !nullptr | Parsing succeeded. Returned value is the pointer following the buffer holding the IP. |
| nullptr | Parsing failed. The buffer does not contain valid IP value. |
◆ calc_ip_mask()
| bool ACL_HOST_AND_IP::calc_ip_mask |
( |
const char * |
ip_arg, |
|
|
long * |
val |
|
) |
| |
|
static |
IP mask parsing in the subnet format.
- Parameters
-
| [in] | ip_arg | Buffer containing subnet mask value. |
| [out] | val | Numeric IP mask value on success. |
- Return values
-
| false | Parsing succeeded. |
| true | Parsing failed. |
◆ check_allow_all_hosts()
| bool ACL_HOST_AND_IP::check_allow_all_hosts |
( |
| ) |
|
|
inline |
◆ compare_hostname()
| bool ACL_HOST_AND_IP::compare_hostname |
( |
const char * |
host_arg, |
|
|
const char * |
ip_arg |
|
) |
| |
◆ get_host()
| const char * ACL_HOST_AND_IP::get_host |
( |
| ) |
const |
|
inline |
◆ get_host_len()
| size_t ACL_HOST_AND_IP::get_host_len |
( |
| ) |
const |
|
inline |
◆ has_wildcard()
| bool ACL_HOST_AND_IP::has_wildcard |
( |
| ) |
|
|
inline |
◆ update_hostname()
| void ACL_HOST_AND_IP::update_hostname |
( |
const char * |
host_arg | ) |
|
Update the hostname.
Updates ip and ip_mask accordingly.
- Parameters
-
| host_arg | Value to be stored |
◆ hostname
| const char* ACL_HOST_AND_IP::hostname |
◆ hostname_length
| size_t ACL_HOST_AND_IP::hostname_length |
◆ ip
◆ ip_mask
| long ACL_HOST_AND_IP::ip_mask |
◆ ip_mask_type
The documentation for this class was generated from the following files: