35#ifndef TOTEMKNET_H_DEFINED
36#define TOTEMKNET_H_DEFINED
39#include <sys/socket.h>
69 void (*target_set_completed) (
83 unsigned int msg_len);
88 unsigned int msg_len);
93 unsigned int msg_len);
114 unsigned short ip_port,
The totem_ip_address struct.
cfg_message_crypto_reconfig_phase_t
int totemknet_mcast_flush_send(void *knet_context, const void *msg, unsigned int msg_len)
int totemknet_finalize(void *knet_context)
int totemknet_recv_flush(void *knet_context)
int totemknet_member_remove(void *knet_context, const struct totem_ip_address *member, int ring_no)
int totemknet_member_add(void *knet_context, const struct totem_ip_address *local, const struct totem_ip_address *member, int ring_no)
void * totemknet_buffer_alloc(void)
int totemknet_processor_count_set(void *knet_context, int processor_count)
int totemknet_mcast_noflush_send(void *knet_context, const void *msg, unsigned int msg_len)
void totemknet_buffer_release(void *ptr)
int totemknet_iface_set(void *net_context, const struct totem_ip_address *local_addr, unsigned short ip_port, unsigned int iface_no)
int totemknet_crypto_set(void *knet_context, const char *cipher_type, const char *hash_type)
int totemknet_token_send(void *knet_context, const void *msg, unsigned int msg_len)
int totemknet_nodestatus_get(void *knet_context, unsigned int nodeid, struct totem_node_status *node_status)
int totemknet_ifaces_get(void *net_context, char ***status, unsigned int *iface_count)
int totemknet_initialize(qb_loop_t *poll_handle, void **knet_context, struct totem_config *totem_config, totemsrp_stats_t *stats, void *context, int(*deliver_fn)(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from), int(*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.
void totemknet_stats_clear(void *knet_context)
int totemknet_send_flush(void *knet_context)
int totemknet_member_set_active(void *knet_context, const struct totem_ip_address *member_ip, int active)
void totemknet_net_mtu_adjust(void *knet_context, struct totem_config *totem_config)
int totemknet_token_target_set(void *knet_context, unsigned int nodeid)
void totemknet_configure_log_level(void)
int totemknet_reconfigure(void *knet_context, struct totem_config *totem_config)
int totemknet_crypto_reconfigure_phase(void *knet_context, struct totem_config *totem_config, cfg_message_crypto_reconfig_phase_t phase)
int totemknet_recv_mcast_empty(void *knet_context)
int totemknet_iface_check(void *knet_context)
struct srp_addr system_from