corosync 3.1.9
totemudpu.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <qb/qbloop.h>
#include <corosync/totem/totem.h>
Include dependency graph for totemudpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int totemudpu_initialize (qb_loop_t *poll_handle, void **udpu_context, struct totem_config *totem_config, totemsrp_stats_t *stats, void *context, int(*deliver_fn)(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from), int(*iface_change_fn)(void *context, const struct totem_ip_address *iface_address, unsigned int ring_no), void(*mtu_changed)(void *context, int net_mtu), void(*target_set_completed)(void *context))
 Create an instance.
 
void * totemudpu_buffer_alloc (void)
 
void totemudpu_buffer_release (void *ptr)
 
int totemudpu_processor_count_set (void *udpu_context, int processor_count)
 
int totemudpu_token_send (void *udpu_context, const void *msg, unsigned int msg_len)
 
int totemudpu_mcast_flush_send (void *udpu_context, const void *msg, unsigned int msg_len)
 
int totemudpu_mcast_noflush_send (void *udpu_context, const void *msg, unsigned int msg_len)
 
int totemudpu_nodestatus_get (void *net_context, unsigned int nodeid, struct totem_node_status *node_status)
 
int totemudpu_ifaces_get (void *net_context, char ***status, unsigned int *iface_count)
 
int totemudpu_recv_flush (void *udpu_context)
 
int totemudpu_send_flush (void *udpu_context)
 
int totemudpu_iface_set (void *net_context, const struct totem_ip_address *local_addr, unsigned short ip_port, unsigned int iface_no)
 
int totemudpu_iface_check (void *udpu_context)
 
int totemudpu_finalize (void *udpu_context)
 
void totemudpu_net_mtu_adjust (void *udpu_context, struct totem_config *totem_config)
 
int totemudpu_token_target_set (void *udpu_context, unsigned int nodeid)
 
int totemudpu_crypto_set (void *udpu_context, const char *cipher_type, const char *hash_type)
 
int totemudpu_recv_mcast_empty (void *udpu_context)
 
int totemudpu_member_add (void *udpu_context, const struct totem_ip_address *local, const struct totem_ip_address *member, int ring_no)
 
int totemudpu_member_remove (void *udpu_context, const struct totem_ip_address *member, int ring_no)
 
int totemudpu_reconfigure (void *udpu_context, struct totem_config *totem_config)
 

Function Documentation

◆ totemudpu_buffer_alloc()

void * totemudpu_buffer_alloc ( void )
extern

Definition at line 1049 of file totemudpu.c.

References FRAME_SIZE_MAX.

◆ totemudpu_buffer_release()

void totemudpu_buffer_release ( void * ptr)
extern

Definition at line 1054 of file totemudpu.c.

◆ totemudpu_crypto_set()

int totemudpu_crypto_set ( void * udpu_context,
const char * cipher_type,
const char * hash_type )
extern

Definition at line 244 of file totemudpu.c.

◆ totemudpu_finalize()

int totemudpu_finalize ( void * udpu_context)
extern

◆ totemudpu_iface_check()

int totemudpu_iface_check ( void * udpu_context)
extern

Definition at line 1133 of file totemudpu.c.

References totemudpu_instance::udpu_context.

◆ totemudpu_iface_set()

int totemudpu_iface_set ( void * net_context,
const struct totem_ip_address * local_addr,
unsigned short ip_port,
unsigned int iface_no )
extern

Definition at line 1301 of file totemudpu.c.

◆ totemudpu_ifaces_get()

int totemudpu_ifaces_get ( void * net_context,
char *** status,
unsigned int * iface_count )
extern

Definition at line 825 of file totemudpu.c.

References INTERFACE_MAX.

◆ totemudpu_initialize()

int totemudpu_initialize ( qb_loop_t * poll_handle,
void ** udpu_context,
struct totem_config * totem_config,
totemsrp_stats_t * stats,
void * context,
int(* deliver_fn )(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from),
int(* iface_change_fn )(void *context, const struct totem_ip_address *iface_address, unsigned int ring_no),
void(* mtu_changed )(void *context, int net_mtu),
void(* target_set_completed )(void *context) )
extern

◆ totemudpu_mcast_flush_send()

int totemudpu_mcast_flush_send ( void * udpu_context,
const void * msg,
unsigned int msg_len )
extern

Definition at line 1107 of file totemudpu.c.

References totemudpu_instance::udpu_context.

◆ totemudpu_mcast_noflush_send()

int totemudpu_mcast_noflush_send ( void * udpu_context,
const void * msg,
unsigned int msg_len )
extern

Definition at line 1120 of file totemudpu.c.

References totemudpu_instance::udpu_context.

◆ totemudpu_member_add()

int totemudpu_member_add ( void * udpu_context,
const struct totem_ip_address * local,
const struct totem_ip_address * member,
int ring_no )
extern

◆ totemudpu_member_remove()

◆ totemudpu_net_mtu_adjust()

void totemudpu_net_mtu_adjust ( void * udpu_context,
struct totem_config * totem_config )
extern

◆ totemudpu_nodestatus_get()

◆ totemudpu_processor_count_set()

◆ totemudpu_reconfigure()

int totemudpu_reconfigure ( void * udpu_context,
struct totem_config * totem_config )
extern

Definition at line 1447 of file totemudpu.c.

◆ totemudpu_recv_flush()

int totemudpu_recv_flush ( void * udpu_context)
extern

Definition at line 1081 of file totemudpu.c.

◆ totemudpu_recv_mcast_empty()

◆ totemudpu_send_flush()

int totemudpu_send_flush ( void * udpu_context)
extern

Definition at line 1088 of file totemudpu.c.

◆ totemudpu_token_send()

int totemudpu_token_send ( void * udpu_context,
const void * msg,
unsigned int msg_len )
extern

◆ totemudpu_token_target_set()