MySQL  8.0.20
Source Code Documentation
sock_probe_ix.c File Reference

Classes

struct  sock_probe
 

Macros

#define BSD_COMP
 

Typedefs

typedef enum SockaddrOp SockaddrOp
 

Enumerations

enum  SockaddrOp { kSockaddrOpAddress = 0, kSockaddrOpNetmask, kSockaddrOpAddress = 0, kSockaddrOpNetmask }
 

Functions

static int number_of_interfaces (sock_probe *s)
 
static void get_sockaddr_address (sock_probe *s, int count, struct sockaddr **out)
 
static void get_sockaddr_netmask (sock_probe *s, int count, struct sockaddr **out)
 
static void get_sockaddr (sock_probe *s, int count, struct sockaddr **out, SockaddrOp addr_operation)
 
static bool_t is_if_running (sock_probe *s, int count)
 
static char * get_if_name (sock_probe *s, int count)
 
static int init_sock_probe (sock_probe *s)
 
static void close_sock_probe (sock_probe *s)
 
static struct ifaddrs * get_interface (sock_probe *s, int count)
 

Macro Definition Documentation

◆ BSD_COMP

#define BSD_COMP

Typedef Documentation

◆ SockaddrOp

typedef enum SockaddrOp SockaddrOp

Enumeration Type Documentation

◆ SockaddrOp

enum SockaddrOp
Enumerator
kSockaddrOpAddress 
kSockaddrOpNetmask 
kSockaddrOpAddress 
kSockaddrOpNetmask 

Function Documentation

◆ close_sock_probe()

static void close_sock_probe ( sock_probe s)
static

◆ get_if_name()

static char * get_if_name ( sock_probe s,
int  count 
)
static

◆ get_interface()

static struct ifaddrs* get_interface ( sock_probe s,
int  count 
)
static

◆ get_sockaddr()

static void get_sockaddr ( sock_probe s,
int  count,
struct sockaddr **  out,
SockaddrOp  addr_operation 
)
static

◆ get_sockaddr_address()

static void get_sockaddr_address ( sock_probe s,
int  count,
struct sockaddr **  out 
)
static

◆ get_sockaddr_netmask()

static void get_sockaddr_netmask ( sock_probe s,
int  count,
struct sockaddr **  out 
)
static

◆ init_sock_probe()

static int init_sock_probe ( sock_probe s)
static

◆ is_if_running()

static bool_t is_if_running ( sock_probe s,
int  count 
)
static

◆ number_of_interfaces()

static int number_of_interfaces ( sock_probe s)
static