MySQL 9.0.0
Source Code Documentation
sock_probe_ix.h File Reference
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/sockio.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include "xcom/simset.h"
#include "xcom/sock_probe.h"
#include "xcom/task.h"
#include "xcom/task_debug.h"
#include "xcom/task_net.h"
#include "xcom/task_os.h"
#include "xcom/x_platform.h"
#include "xcom/xcom_base.h"
#include "xcom/xcom_common.h"
#include "xcom/xcom_memory.h"
#include "xcom/xcom_profile.h"
#include "xcom/xcom_transport.h"
#include "xdr_gen/xcom_vp.h"

Go to the source code of this file.

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