corosync  2.4.2
Functions
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, int interface_no, void *context, void(*deliver_fn)(void *context, const void *msg, unsigned int msg_len), void(*iface_change_fn)(void *context, const struct totem_ip_address *iface_address), void(*target_set_completed)(void *context))
 Create an instance. More...
 
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_recv_flush (void *udpu_context)
 
int totemudpu_send_flush (void *udpu_context)
 
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)
 
const char * totemudpu_iface_print (void *udpu_context)
 
int totemudpu_iface_get (void *udpu_context, struct totem_ip_address *addr)
 
int totemudpu_token_target_set (void *udpu_context, const struct totem_ip_address *token_target)
 
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 *member)
 
int totemudpu_member_remove (void *udpu_context, const struct totem_ip_address *member)
 
int totemudpu_member_set_active (void *udpu_context, const struct totem_ip_address *member_ip, int active)
 

Function Documentation

§ totemudpu_buffer_alloc()

void* totemudpu_buffer_alloc ( void  )

Definition at line 859 of file totemudpu.c.

References FRAME_SIZE_MAX.

§ totemudpu_buffer_release()

void totemudpu_buffer_release ( void *  ptr)

Definition at line 864 of file totemudpu.c.

§ totemudpu_crypto_set()

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

Definition at line 250 of file totemudpu.c.

§ totemudpu_finalize()

int totemudpu_finalize ( void *  udpu_context)

§ totemudpu_iface_check()

int totemudpu_iface_check ( void *  udpu_context)

Definition at line 943 of file totemudpu.c.

§ totemudpu_iface_get()

int totemudpu_iface_get ( void *  udpu_context,
struct totem_ip_address addr 
)

Definition at line 972 of file totemudpu.c.

References totemudpu_instance::my_id.

§ totemudpu_iface_print()

const char* totemudpu_iface_print ( void *  udpu_context)

Definition at line 963 of file totemudpu.c.

References totemudpu_instance::my_id, and totemip_print().

§ totemudpu_initialize()

int totemudpu_initialize ( qb_loop_t *  poll_handle,
void **  udpu_context,
struct totem_config totem_config,
totemsrp_stats_t stats,
int  interface_no,
void *  context,
void(*)(void *context, const void *msg, unsigned int msg_len)  deliver_fn,
void(*)(void *context, const struct totem_ip_address *iface_address)  iface_change_fn,
void(*)(void *context)  target_set_completed 
)

Create an instance.

Definition at line 763 of file totemudpu.c.

§ totemudpu_mcast_flush_send()

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

Definition at line 917 of file totemudpu.c.

§ totemudpu_mcast_noflush_send()

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

Definition at line 930 of file totemudpu.c.

§ totemudpu_member_add()

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

Definition at line 1109 of file totemudpu.c.

References log_printf, LOGSYS_LEVEL_NOTICE, and totemip_print().

§ totemudpu_member_remove()

int totemudpu_member_remove ( void *  udpu_context,
const struct totem_ip_address member 
)

§ totemudpu_member_set_active()

int totemudpu_member_set_active ( void *  udpu_context,
const struct totem_ip_address member_ip,
int  active 
)

§ totemudpu_net_mtu_adjust()

void totemudpu_net_mtu_adjust ( void *  udpu_context,
struct totem_config totem_config 
)

§ totemudpu_processor_count_set()

int totemudpu_processor_count_set ( void *  udpu_context,
int  processor_count 
)

§ totemudpu_recv_flush()

int totemudpu_recv_flush ( void *  udpu_context)

Definition at line 891 of file totemudpu.c.

§ totemudpu_recv_mcast_empty()

int totemudpu_recv_mcast_empty ( void *  udpu_context)

§ totemudpu_send_flush()

int totemudpu_send_flush ( void *  udpu_context)

Definition at line 898 of file totemudpu.c.

§ totemudpu_token_send()

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

Definition at line 905 of file totemudpu.c.

§ totemudpu_token_target_set()

int totemudpu_token_target_set ( void *  udpu_context,
const struct totem_ip_address token_target 
)