43#ifndef TOTEMNET_H_DEFINED
44#define TOTEMNET_H_DEFINED
47#include <sys/socket.h>
51#define TOTEMNET_NOFLUSH 0
52#define TOTEMNET_FLUSH 1
58 qb_loop_t *poll_handle,
70 void (*iface_change_fn) (
73 unsigned int iface_no),
79 void (*target_set_completed) (
93 unsigned int msg_len);
98 unsigned int msg_len);
103 unsigned int msg_len);
111 unsigned short ip_port,
112 unsigned int iface_no);
136 unsigned int *iface_count);
144 const char *cipher_type,
145 const char *hash_type);
The totem_ip_address struct.
unsigned int target_nodeid
cfg_message_crypto_reconfig_phase_t
int totemnet_iface_set(void *net_context, const struct totem_ip_address *interface_addr, unsigned short ip_port, unsigned int iface_no)
int totemnet_member_remove(void *net_context, const struct totem_ip_address *member, int ring_no)
void * totemnet_buffer_alloc(void *net_context)
int totemnet_token_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_send_flush(void *net_context)
void totemnet_buffer_release(void *net_context, void *ptr)
int totemnet_mcast_flush_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_member_add(void *net_context, const struct totem_ip_address *local, const struct totem_ip_address *member, int ring_no)
int totemnet_finalize(void *net_context)
int totemnet_crypto_set(void *net_context, const char *cipher_type, const char *hash_type)
int totemnet_ifaces_get(void *net_context, char ***status, unsigned int *iface_count)
int totemnet_processor_count_set(void *net_context, int processor_count)
const char * totemnet_iface_print(void *net_context)
int totemnet_token_target_set(void *net_context, unsigned int target_nodeid)
int totemnet_recv_flush(void *net_context)
int totemnet_iface_check(void *net_context)
int totemnet_mcast_noflush_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_recv_mcast_empty(void *net_context)
int totemnet_net_mtu_adjust(void *net_context, struct totem_config *totem_config)
int totemnet_nodestatus_get(void *net_context, unsigned int nodeid, struct totem_node_status *node_status)
void totemnet_stats_clear(void *net_context)
int totemnet_reconfigure(void *net_context, struct totem_config *totem_config)
int totemnet_member_set_active(void *net_context, const struct totem_ip_address *member, int active)
int totemnet_crypto_reconfigure_phase(void *net_context, struct totem_config *totem_config, cfg_message_crypto_reconfig_phase_t phase)
int totemnet_initialize(qb_loop_t *poll_handle, void **net_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 iface_no), void(*mtu_changed)(void *context, int net_mtu), void(*target_set_completed)(void *context))
Create an instance.
struct srp_addr system_from