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

Go to the source code of this file.

Functions

int totemudp_initialize (qb_loop_t *poll_handle, void **udp_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 * totemudp_buffer_alloc (void)
 
void totemudp_buffer_release (void *ptr)
 
int totemudp_processor_count_set (void *udp_context, int processor_count)
 
int totemudp_token_send (void *udp_context, const void *msg, unsigned int msg_len)
 
int totemudp_mcast_flush_send (void *udp_context, const void *msg, unsigned int msg_len)
 
int totemudp_mcast_noflush_send (void *udp_context, const void *msg, unsigned int msg_len)
 
int totemudp_recv_flush (void *udp_context)
 
int totemudp_send_flush (void *udp_context)
 
int totemudp_iface_check (void *udp_context)
 
int totemudp_finalize (void *udp_context)
 
void totemudp_net_mtu_adjust (void *udp_context, struct totem_config *totem_config)
 
const char * totemudp_iface_print (void *udp_context)
 
int totemudp_iface_get (void *udp_context, struct totem_ip_address *addr)
 
int totemudp_token_target_set (void *udp_context, const struct totem_ip_address *token_target)
 
int totemudp_crypto_set (void *udp_context, const char *cipher_type, const char *hash_type)
 
int totemudp_recv_mcast_empty (void *udp_context)
 

Function Documentation

void* totemudp_buffer_alloc ( void  )

Definition at line 1199 of file totemudp.c.

References FRAME_SIZE_MAX.

void totemudp_buffer_release ( void *  ptr)

Definition at line 1204 of file totemudp.c.

int totemudp_crypto_set ( void *  udp_context,
const char *  cipher_type,
const char *  hash_type 
)
int totemudp_finalize ( void *  udp_context)

Definition at line 413 of file totemudp.c.

References BIND_STATE_LOOPBACK, BIND_STATE_REGULAR, totem_interface::bindnet, totem_interface::boundto, totem_config::broadcast_use, totem_config::clear_node_high_bit, totemudp_instance::context, crypto_authenticate_and_decrypt(), totemudp_instance::crypto_inst, totem_config::downcheck_timeout, totem_ip_address::family, totemudp_instance::flushing, FRAME_SIZE_MAX, totem_interface::ip_port, totemudp_socket::local_mcast_loop, log_printf, LOGSYS_PERROR, totemudp_instance::mcast_address, totemudp_socket::mcast_recv, totemudp_socket::mcast_send, MCAST_SOCKET_BUFFER_SIZE, MESSAGE_TYPE_MEMB_JOIN, MSG_NOSIGNAL, totemudp_instance::my_id, totemudp_instance::my_memb_entries, totemudp_instance::netif_bind_state, totemudp_instance::netif_state_report, NETIF_STATE_REPORT_DOWN, NETIF_STATE_REPORT_UP, totemudp_instance::stats_recv, system_from, totemudp_instance::timer_netif_check_timeout, totemudp_socket::token, totemudp_instance::totem_config, totemudp_instance::totem_interface, totemip_copy(), totemip_iface_check(), totemip_nosigpipe, totemip_print(), totemip_totemip_to_sockaddr_convert(), totemudp_instance::totemudp_deliver_fn, totemudp_instance::totemudp_iface_change_fn, totemudp_instance::totemudp_iov_recv, totemudp_instance::totemudp_iov_recv_flush, totemudp_instance::totemudp_log_level_debug, totemudp_instance::totemudp_log_level_notice, totemudp_instance::totemudp_log_level_security, totemudp_instance::totemudp_log_level_warning, totemudp_instance::totemudp_poll_handle, totemudp_instance::totemudp_sockets, and totem_interface::ttl.

int totemudp_iface_check ( void *  udp_context)

Definition at line 1310 of file totemudp.c.

int totemudp_iface_get ( void *  udp_context,
struct totem_ip_address addr 
)

Definition at line 1339 of file totemudp.c.

References totemudp_instance::my_id.

const char* totemudp_iface_print ( void *  udp_context)

Definition at line 1330 of file totemudp.c.

References totemudp_instance::my_id, and totemip_print().

int totemudp_initialize ( qb_loop_t *  poll_handle,
void **  udp_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 
)
int totemudp_mcast_flush_send ( void *  udp_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1284 of file totemudp.c.

int totemudp_mcast_noflush_send ( void *  udp_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1297 of file totemudp.c.

void totemudp_net_mtu_adjust ( void *  udp_context,
struct totem_config totem_config 
)
int totemudp_processor_count_set ( void *  udp_context,
int  processor_count 
)
int totemudp_recv_flush ( void *  udp_context)
int totemudp_recv_mcast_empty ( void *  udp_context)
int totemudp_send_flush ( void *  udp_context)

Definition at line 1267 of file totemudp.c.

int totemudp_token_send ( void *  udp_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1272 of file totemudp.c.

References totemudp_instance::token_target.

int totemudp_token_target_set ( void *  udp_context,
const struct totem_ip_address token_target 
)