MySQL  8.0.19
Source Code Documentation
ACL_HOST_AND_IP Class Reference

#include <sql_auth_cache.h>

Public Member Functions

 ACL_HOST_AND_IP ()
 
const char * get_host () const
 
size_t get_host_len () const
 
bool has_wildcard ()
 
bool check_allow_all_hosts ()
 
void update_hostname (const char *host_arg)
 Update the hostname. More...
 
bool compare_hostname (const char *host_arg, const char *ip_arg)
 

Private Member Functions

const char * calc_ip (const char *ip_arg, long *val, char end)
 

Private Attributes

const char * hostname
 
size_t hostname_length
 
long ip
 
long ip_mask
 

Constructor & Destructor Documentation

◆ ACL_HOST_AND_IP()

ACL_HOST_AND_IP::ACL_HOST_AND_IP ( )
inline

Member Function Documentation

◆ calc_ip()

const char * ACL_HOST_AND_IP::calc_ip ( const char *  ip_arg,
long *  val,
char  end 
)
private

◆ 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_argValue to be stored

Member Data Documentation

◆ hostname

const char* ACL_HOST_AND_IP::hostname
private

◆ hostname_length

size_t ACL_HOST_AND_IP::hostname_length
private

◆ ip

long ACL_HOST_AND_IP::ip
private

◆ ip_mask

long ACL_HOST_AND_IP::ip_mask
private

The documentation for this class was generated from the following files: