35#ifndef TOTEMUDPU_H_DEFINED
36#define TOTEMUDPU_H_DEFINED
39#include <sys/socket.h>
48 qb_loop_t *poll_handle,
60 void (*iface_change_fn) (
63 unsigned int ring_no),
69 void (*target_set_completed) (
83 unsigned int msg_len);
88 unsigned int msg_len);
93 unsigned int msg_len);
100 unsigned int *iface_count);
108 unsigned short ip_port,
109 unsigned int iface_no);
123 const char *cipher_type,
124 const char *hash_type);
The totem_ip_address struct.
struct srp_addr system_from
void totemudpu_buffer_release(void *ptr)
int totemudpu_ifaces_get(void *net_context, char ***status, unsigned int *iface_count)
int totemudpu_send_flush(void *udpu_context)
int totemudpu_token_target_set(void *udpu_context, unsigned int nodeid)
void * totemudpu_buffer_alloc(void)
int totemudpu_recv_mcast_empty(void *udpu_context)
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_iface_set(void *net_context, const struct totem_ip_address *local_addr, unsigned short ip_port, unsigned int iface_no)
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.
int totemudpu_crypto_set(void *udpu_context, const char *cipher_type, const char *hash_type)
int totemudpu_recv_flush(void *udpu_context)
int totemudpu_mcast_noflush_send(void *udpu_context, const void *msg, unsigned int msg_len)
int totemudpu_nodestatus_get(void *net_context, unsigned int nodeid, struct totem_node_status *node_status)
int totemudpu_finalize(void *udpu_context)
int totemudpu_mcast_flush_send(void *udpu_context, const void *msg, unsigned int msg_len)
int totemudpu_iface_check(void *udpu_context)
int totemudpu_reconfigure(void *udpu_context, struct totem_config *totem_config)
void totemudpu_net_mtu_adjust(void *udpu_context, struct totem_config *totem_config)
int totemudpu_member_remove(void *udpu_context, const struct totem_ip_address *member, int ring_no)
int totemudpu_member_add(void *udpu_context, const struct totem_ip_address *local, const struct totem_ip_address *member, int ring_no)