|
corosync
3.1.6
|
#include <netinet/in.h>#include <corosync/corotypes.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_SET (1<<3) |
| #define | TOTEM_CONFIG_BINDNETADDR_NODELIST_SET (1<<4) |
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, icmap_map_t map, const char **error_string) |
| int | totem_config_find_local_addr_in_nodelist (struct totem_config *totem_config, const char *ipaddr_key_prefix, unsigned int *node_pos) |
| void | totem_volatile_config_read (struct totem_config *totem_config, icmap_map_t temp_map, const char *deleted_key) |
| int | totem_reread_crypto_config (struct totem_config *totem_config, icmap_map_t map, const char **error_string) |
| int | totem_volatile_config_validate (struct totem_config *totem_config, icmap_map_t temp_map, const char **error_string) |
| int | totemconfig_configure_new_params (struct totem_config *totem_config, icmap_map_t map, const char **error_string) |
| void | totemconfig_commit_new_params (struct totem_config *totem_config, icmap_map_t map) |
| #define TOTEM_CONFIG_BINDNETADDR_NODELIST_SET (1<<4) |
Definition at line 48 of file totemconfig.h.
| #define TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED (1<<2) |
Definition at line 46 of file totemconfig.h.
| #define TOTEM_CONFIG_WARNING_MEMBERS_IGNORED (1<<1) |
Definition at line 45 of file totemconfig.h.
| #define TOTEM_CONFIG_WARNING_TOTEM_NODEID_SET (1<<3) |
Definition at line 47 of file totemconfig.h.
| int totem_config_find_local_addr_in_nodelist | ( | struct totem_config * | totem_config, |
| const char * | ipaddr_key_prefix, | ||
| unsigned int * | node_pos | ||
| ) |
| int totem_config_keyread | ( | struct totem_config * | totem_config, |
| icmap_map_t | map, | ||
| const char ** | error_string | ||
| ) |
Definition at line 2213 of file totemconfig.c.
References totem_config::crypto_cipher_type, totem_config::crypto_hash_type, CS_OK, icmap_get_string_r(), totem_config::private_key, totem_config::private_key_len, and TOTEM_PRIVATE_KEY_LEN_MAX.
| int totem_config_read | ( | struct totem_config * | totem_config, |
| const char ** | error_string, | ||
| uint64_t * | warnings | ||
| ) |
Definition at line 1780 of file totemconfig.c.
References CS_OK, icmap_get_string(), icmap_get_uint32(), ICMAP_KEYNAME_MAXLEN, INTERFACE_MAX, totem_config::interfaces, totem_config::link_mode, TOTEM_TRANSPORT_KNET, TOTEM_TRANSPORT_UDP, TOTEM_TRANSPORT_UDPU, totem_config::transport_number, and totem_config::version.
| int totem_config_validate | ( | struct totem_config * | totem_config, |
| const char ** | error_string | ||
| ) |
Definition at line 1997 of file totemconfig.c.
References totem_interface::bindnet, totem_config::broadcast_use, totem_interface::configured, CS_OK, totem_ip_address::family, icmap_get_global_map(), icmap_get_uint32(), INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_interface::knet_link_priority, totem_interface::mcast_addr, totem_config::node_id, TOTEM_TRANSPORT_KNET, TOTEM_TRANSPORT_UDP, totem_volatile_config_validate(), totemip_is_mcast(), totem_config::transport_number, totem_interface::ttl, and totem_config::version.
| int totem_reread_crypto_config | ( | struct totem_config * | totem_config, |
| icmap_map_t | map, | ||
| const char ** | error_string | ||
| ) |
Definition at line 2285 of file totemconfig.c.
| void totem_volatile_config_read | ( | struct totem_config * | totem_config, |
| icmap_map_t | temp_map, | ||
| const char * | deleted_key | ||
| ) |
Definition at line 308 of file totemconfig.c.
| int totem_volatile_config_validate | ( | struct totem_config * | totem_config, |
| icmap_map_t | temp_map, | ||
| const char ** | error_string | ||
| ) |
Definition at line 376 of file totemconfig.c.
References totem_interface::configured, totem_config::consensus_timeout, CS_OK, totem_config::downcheck_timeout, totem_ip_address::family, icmap_get_string_r(), icmap_get_uint32_r(), ICMAP_KEYNAME_MAXLEN, INTERFACE_MAX, totem_config::interfaces, totem_config::join_timeout, totem_config::max_network_delay, totem_interface::member_count, totem_interface::member_list, totem_config::merge_timeout, MINIMUM_TIMEOUT, MINIMUM_TIMEOUT_HOLD, totem_config::token_hold_timeout, totem_config::token_retransmit_timeout, totem_config::token_timeout, totem_config::token_warning, and totemip_print().
Referenced by totem_config_validate().
| void totemconfig_commit_new_params | ( | struct totem_config * | totem_config, |
| icmap_map_t | map | ||
| ) |
Definition at line 2413 of file totemconfig.c.
References INTERFACE_MAX, and totem_config::interfaces.
Referenced by main_iface_change_fn().
| int totemconfig_configure_new_params | ( | struct totem_config * | totem_config, |
| icmap_map_t | map, | ||
| const char ** | error_string | ||
| ) |
Definition at line 2390 of file totemconfig.c.