corosync
2.3.5
|
#include <sys/types.h>
#include <sys/socket.h>
#include <qb/qbloop.h>
#include <corosync/totem/totem.h>
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) |
void* totemudp_buffer_alloc | ( | void | ) |
Definition at line 1197 of file totemudp.c.
References FRAME_SIZE_MAX.
void totemudp_buffer_release | ( | void * | ptr | ) |
Definition at line 1202 of file totemudp.c.
int totemudp_crypto_set | ( | void * | udp_context, |
const char * | cipher_type, | ||
const char * | hash_type | ||
) |
Definition at line 249 of file totemudp.c.
int totemudp_finalize | ( | void * | udp_context | ) |
Definition at line 413 of file totemudp.c.
References totemudp_socket::local_mcast_loop, totemudp_socket::mcast_recv, totemudp_socket::mcast_send, totemudp_socket::token, totemudp_instance::totemudp_poll_handle, and totemudp_instance::totemudp_sockets.
int totemudp_iface_check | ( | void * | udp_context | ) |
Definition at line 1308 of file totemudp.c.
int totemudp_iface_get | ( | void * | udp_context, |
struct totem_ip_address * | addr | ||
) |
Definition at line 1337 of file totemudp.c.
References totemudp_instance::my_id.
const char* totemudp_iface_print | ( | void * | udp_context | ) |
Definition at line 1328 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 | ||
) |
Create an instance.
Definition at line 1102 of file totemudp.c.
References totem_interface::bindnet, totemudp_instance::context, totem_config::crypto_cipher_type, totem_config::crypto_hash_type, crypto_init(), totemudp_instance::crypto_inst, totem_ip_address::family, FRAME_SIZE_MAX, totem_config::interfaces, totemudp_instance::iov_buffer, totem_logging_configuration::log_level_debug, totem_logging_configuration::log_level_error, totem_logging_configuration::log_level_notice, totem_logging_configuration::log_level_warning, totem_logging_configuration::log_printf, totem_logging_configuration::log_subsys_id, totem_interface::mcast_addr, totemudp_instance::mcast_address, totem_config::node_id, totem_ip_address::nodeid, totem_config::private_key, totem_config::private_key_len, totemudp_instance::stats, totemudp_instance::timer_netif_check_timeout, totemudp_instance::totem_config, totemudp_instance::totem_interface, totem_config::totem_logging_configuration, totemip_copy(), totemip_localhost(), totemudp_instance::totemudp_deliver_fn, totemudp_instance::totemudp_iface_change_fn, totemudp_instance::totemudp_log_level_debug, totemudp_instance::totemudp_log_level_error, totemudp_instance::totemudp_log_level_notice, totemudp_instance::totemudp_log_level_security, totemudp_instance::totemudp_log_level_warning, totemudp_instance::totemudp_log_printf, totemudp_instance::totemudp_poll_handle, totemudp_instance::totemudp_subsys_id, and totemudp_instance::totemudp_target_set_completed.
int totemudp_mcast_flush_send | ( | void * | udp_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1282 of file totemudp.c.
int totemudp_mcast_noflush_send | ( | void * | udp_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1295 of file totemudp.c.
void totemudp_net_mtu_adjust | ( | void * | udp_context, |
struct totem_config * | totem_config | ||
) |
Definition at line 1318 of file totemudp.c.
References totem_interface::bindnet, totem_config::crypto_cipher_type, totem_config::crypto_hash_type, crypto_sec_header_size(), totem_ip_address::family, totem_config::interface_count, totem_config::interfaces, totem_config::net_mtu, and totemip_udpip_header_size().
int totemudp_processor_count_set | ( | void * | udp_context, |
int | processor_count | ||
) |
Definition at line 1207 of file totemudp.c.
References totem_config::downcheck_timeout, totemudp_instance::my_memb_entries, totemudp_instance::timer_netif_check_timeout, totemudp_instance::totem_config, and totemudp_instance::totemudp_poll_handle.
int totemudp_recv_flush | ( | void * | udp_context | ) |
Definition at line 1229 of file totemudp.c.
References totemudp_instance::flushing, totemudp_socket::local_mcast_loop, totemudp_socket::mcast_recv, and totemudp_instance::totemudp_sockets.
int totemudp_recv_mcast_empty | ( | void * | udp_context | ) |
Definition at line 1364 of file totemudp.c.
References totemudp_socket::local_mcast_loop, totemudp_socket::mcast_recv, MSG_NOSIGNAL, system_from, totemudp_instance::totemudp_iov_recv_flush, and totemudp_instance::totemudp_sockets.
int totemudp_send_flush | ( | void * | udp_context | ) |
Definition at line 1265 of file totemudp.c.
int totemudp_token_send | ( | void * | udp_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1270 of file totemudp.c.
References totemudp_instance::token_target.
int totemudp_token_target_set | ( | void * | udp_context, |
const struct totem_ip_address * | token_target | ||
) |
Definition at line 1349 of file totemudp.c.
References totemudp_instance::context, totemudp_instance::token_target, and totemudp_instance::totemudp_target_set_completed.