corosync
2.3.6
|
#include <netinet/in.h>
#include <corosync/corotypes.h>
#include <corosync/list.h>
#include <qb/qbloop.h>
#include <corosync/totem/totempg.h>
#include "totemsrp.h"
Go to the source code of this file.
Macros | |
#define | TOTEM_CONFIG_WARNING_MEMBERS_IGNORED (1<<1) |
#define | TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED (1<<2) |
#define | TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED (1<<3) |
Functions | |
int | totem_config_read (struct totem_config *totem_config, const char **error_string, uint64_t *warnings) |
int | totem_config_validate (struct totem_config *totem_config, const char **error_string) |
int | totem_config_keyread (struct totem_config *totem_config, const char **error_string) |
int | totem_config_find_local_addr_in_nodelist (const char *ipaddr_key_prefix, unsigned int *node_pos) |
#define TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED (1<<2) |
Definition at line 47 of file totemconfig.h.
Referenced by main(), and totem_config_read().
#define TOTEM_CONFIG_WARNING_MEMBERS_IGNORED (1<<1) |
Definition at line 46 of file totemconfig.h.
Referenced by main(), and totem_config_read().
#define TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED (1<<3) |
Definition at line 48 of file totemconfig.h.
Referenced by main(), and totem_config_read().
int totem_config_find_local_addr_in_nodelist | ( | const char * | ipaddr_key_prefix, |
unsigned int * | node_pos | ||
) |
Definition at line 843 of file totemconfig.c.
References CS_OK, icmap_get_string(), icmap_iter_finalize(), icmap_iter_init(), icmap_iter_next(), ICMAP_KEYNAME_MAXLEN, icmap_set_string(), totem_ip_if_address::ip_addr, list_entry, list_head::next, totem_config_find_local_addr_in_nodelist(), totemip_equal(), totemip_freeifaddrs(), totemip_getifaddrs(), and totemip_parse().
Referenced by totem_config_find_local_addr_in_nodelist().
int totem_config_keyread | ( | struct totem_config * | totem_config, |
const char ** | error_string | ||
) |
Definition at line 1445 of file totemconfig.c.
References totem_config::consensus_timeout, COROSYSCONFDIR, totem_config::crypto_cipher_type, totem_config::crypto_hash_type, CS_OK, icmap_notify_value::data, totem_config::downcheck_timeout, totem_config::fail_to_recv_const, totem_config::heartbeat_failures_allowed, icmap_get(), icmap_get_string(), icmap_get_uint8(), icmap_set_uint32(), icmap_set_uint8(), ICMAP_TRACK_ADD, icmap_track_add(), ICMAP_TRACK_DELETE, ICMAP_TRACK_MODIFY, ICMAP_TRACK_PREFIX, totem_config::join_timeout, log_printf, LOGSYS_LEVEL_DEBUG, LOGSYS_LEVEL_ERROR, totem_config::max_messages, totem_config::max_network_delay, totem_config::merge_timeout, totem_config::miss_count_const, totem_config::net_mtu, param, totem_config::private_key, totem_config::private_key_len, totem_config::rrp_autorecovery_check_timeout, totem_config::rrp_mode, totem_config::rrp_problem_count_mcast_threshold, totem_config::rrp_problem_count_threshold, totem_config::rrp_problem_count_timeout, totem_config::rrp_token_expired_timeout, totem_config::send_join_timeout, totem_config::seqno_unchanged_const, totem_config::token_hold_timeout, totem_config::token_retransmit_timeout, totem_config::token_retransmits_before_loss_const, totem_config::token_timeout, and totem_config::window_size.
Referenced by main().
int totem_config_read | ( | struct totem_config * | totem_config, |
const char ** | error_string, | ||
uint64_t * | warnings | ||
) |
Definition at line 971 of file totemconfig.c.
References totem_interface::bindnet, totem_config::broadcast_use, totem_config::clear_node_high_bit, CS_OK, DEFAULT_PORT, icmap_get_string(), icmap_get_uint16(), icmap_get_uint32(), icmap_get_uint8(), icmap_iter_finalize(), icmap_iter_init(), icmap_iter_next(), ICMAP_KEYNAME_MAXLEN, icmap_set_ro_access(), icmap_set_string(), icmap_set_uint16(), icmap_set_uint32(), icmap_set_uint8(), totem_config::interface_count, INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_config::ip_version, totem_interface::mcast_addr, totem_interface::member_count, totem_interface::member_list, totem_config::net_mtu, totem_config::node_id, totem_config::rrp_mode, totem_config::threads, TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED, TOTEM_CONFIG_WARNING_MEMBERS_IGNORED, TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED, TOTEM_RRP_MODE_BYTES, TOTEM_TRANSPORT_RDMA, TOTEM_TRANSPORT_UDP, TOTEM_TRANSPORT_UDPU, totemip_parse(), totemip_print(), totem_config::transport_number, totem_interface::ttl, and totem_config::version.
Referenced by main().
int totem_config_validate | ( | struct totem_config * | totem_config, |
const char ** | error_string | ||
) |
Definition at line 1259 of file totemconfig.c.
References totem_interface::bindnet, totem_config::broadcast_use, totem_ip_address::family, totem_config::interface_count, INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_interface::mcast_addr, totem_config::net_mtu, totem_config::node_id, totem_config::private_key, totem_config::private_key_len, totem_config::rrp_mode, TOTEM_TRANSPORT_UDP, totemip_equal(), totemip_is_mcast(), totem_config::transport_number, totem_interface::ttl, and totem_config::version.
Referenced by main().