corosync
3.0.3
|
#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 | totemudpu_initialize (qb_loop_t *poll_handle, void **udpu_context, struct totem_config *totem_config, totemsrp_stats_t *stats, void *context, void(*deliver_fn)(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from), void(*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. 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_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) |
void* totemudpu_buffer_alloc | ( | void | ) |
Definition at line 1020 of file totemudpu.c.
References FRAME_SIZE_MAX.
void totemudpu_buffer_release | ( | void * | ptr | ) |
Definition at line 1025 of file totemudpu.c.
int totemudpu_crypto_set | ( | void * | udpu_context, |
const char * | cipher_type, | ||
const char * | hash_type | ||
) |
Definition at line 244 of file totemudpu.c.
int totemudpu_finalize | ( | void * | udpu_context | ) |
Definition at line 423 of file totemudpu.c.
References totemudpu_instance::local_loop_sock, totemudpu_instance::token_socket, and totemudpu_instance::totemudpu_poll_handle.
int totemudpu_iface_check | ( | void * | udpu_context | ) |
Definition at line 1104 of file totemudpu.c.
int totemudpu_iface_set | ( | void * | net_context, |
const struct totem_ip_address * | local_addr, | ||
unsigned short | ip_port, | ||
unsigned int | iface_no | ||
) |
Definition at line 1272 of file totemudpu.c.
int totemudpu_ifaces_get | ( | void * | net_context, |
char *** | status, | ||
unsigned int * | iface_count | ||
) |
Definition at line 796 of file totemudpu.c.
References INTERFACE_MAX.
int totemudpu_initialize | ( | qb_loop_t * | poll_handle, |
void ** | udpu_context, | ||
struct totem_config * | totem_config, | ||
totemsrp_stats_t * | stats, | ||
void * | context, | ||
void(*)(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from) | deliver_fn, | ||
void(*)(void *context, const struct totem_ip_address *iface_address, unsigned int ring_no) | iface_change_fn, | ||
void(*)(void *context, int net_mtu) | mtu_changed, | ||
void(*)(void *context) | target_set_completed | ||
) |
Create an instance.
Definition at line 924 of file totemudpu.c.
int totemudpu_mcast_flush_send | ( | void * | udpu_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1078 of file totemudpu.c.
int totemudpu_mcast_noflush_send | ( | void * | udpu_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1091 of file totemudpu.c.
int totemudpu_member_add | ( | void * | udpu_context, |
const struct totem_ip_address * | local, | ||
const struct totem_ip_address * | member, | ||
int | ring_no | ||
) |
Definition at line 1281 of file totemudpu.c.
References totemudpu_member::fd, totemudpu_member::list, log_printf, LOGSYS_LEVEL_NOTICE, totemudpu_member::member, totemudpu_instance::member_list, and totemip_print().
int totemudpu_member_remove | ( | void * | udpu_context, |
const struct totem_ip_address * | member, | ||
int | ring_no | ||
) |
Definition at line 1309 of file totemudpu.c.
References totemudpu_member::fd, totemudpu_member::list, log_printf, LOGSYS_LEVEL_DEBUG, LOGSYS_LEVEL_NOTICE, totemudpu_member::member, totemudpu_instance::member_list, totemip_compare(), totemip_print(), and totemudpu_instance::totemudpu_poll_handle.
void totemudpu_net_mtu_adjust | ( | void * | udpu_context, |
struct totem_config * | totem_config | ||
) |
Definition at line 1114 of file totemudpu.c.
References totem_interface::bindnet, totem_ip_address::family, totem_config::interfaces, totem_config::net_mtu, and totemip_udpip_header_size().
int totemudpu_processor_count_set | ( | void * | udpu_context, |
int | processor_count | ||
) |
Definition at line 1030 of file totemudpu.c.
References totem_config::downcheck_timeout, totemudpu_instance::my_memb_entries, totemudpu_instance::timer_netif_check_timeout, totemudpu_instance::totem_config, and totemudpu_instance::totemudpu_poll_handle.
int totemudpu_reconfigure | ( | void * | udpu_context, |
struct totem_config * | totem_config | ||
) |
Definition at line 1418 of file totemudpu.c.
int totemudpu_recv_flush | ( | void * | udpu_context | ) |
Definition at line 1052 of file totemudpu.c.
int totemudpu_recv_mcast_empty | ( | void * | udpu_context | ) |
Definition at line 1146 of file totemudpu.c.
References BIND_STATE_REGULAR, totemudpu_instance::local_loop_sock, MSG_NOSIGNAL, totemudpu_instance::netif_bind_state, system_from, totemudpu_instance::token_socket, and totemudpu_instance::totemudpu_iov_recv.
int totemudpu_send_flush | ( | void * | udpu_context | ) |
Definition at line 1059 of file totemudpu.c.
int totemudpu_token_send | ( | void * | udpu_context, |
const void * | msg, | ||
unsigned int | msg_len | ||
) |
Definition at line 1066 of file totemudpu.c.
int totemudpu_token_target_set | ( | void * | udpu_context, |
unsigned int | nodeid | ||
) |
Definition at line 1120 of file totemudpu.c.
References totemudpu_instance::context, totemudpu_member::list, totemudpu_member::member, totemudpu_instance::member_list, totem_ip_address::nodeid, totemudpu_instance::token_target, and totemudpu_instance::totemudpu_target_set_completed.