|
corosync
3.0.1
|
#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_IGNORED (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, 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) |
| #define TOTEM_CONFIG_BINDNETADDR_NODELIST_SET (1<<4) |
Definition at line 48 of file totemconfig.h.
Referenced by main(), and totem_config_read().
| #define TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED (1<<2) |
Definition at line 46 of file totemconfig.h.
Referenced by main().
| #define TOTEM_CONFIG_WARNING_MEMBERS_IGNORED (1<<1) |
Definition at line 45 of file totemconfig.h.
Referenced by main().
| #define TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED (1<<3) |
Definition at line 47 of file totemconfig.h.
Referenced by main(), and totem_config_read().
| 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, |
| const char ** | error_string | ||
| ) |
Definition at line 2004 of file totemconfig.c.
References COROSYSCONFDIR, totem_config::crypto_cipher_type, totem_config::crypto_hash_type, CS_OK, icmap_get(), icmap_get_string(), totem_config::private_key, totem_config::private_key_len, and TOTEM_PRIVATE_KEY_LEN_MIN.
Referenced by main().
| int totem_config_read | ( | struct totem_config * | totem_config, |
| const char ** | error_string, | ||
| uint64_t * | warnings | ||
| ) |
Definition at line 1576 of file totemconfig.c.
References totem_config::broadcast_use, totem_config::clear_node_high_bit, totem_interface::configured, CS_OK, icmap_get_string(), icmap_get_uint16(), icmap_get_uint32(), ICMAP_KEYNAME_MAXLEN, icmap_set_ro_access(), icmap_set_string(), icmap_set_uint16(), icmap_set_uint8(), INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_config::ip_version, totem_config::link_mode, totem_interface::mcast_addr, totem_interface::member_list, totem_config::net_mtu, totem_config::node_id, totem_ip_address::nodeid, totem_config::threads, TOTEM_CONFIG_BINDNETADDR_NODELIST_SET, TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED, TOTEM_IP_VERSION_4, TOTEM_LINK_MODE_BYTES, TOTEM_TRANSPORT_KNET, TOTEM_TRANSPORT_UDP, TOTEM_TRANSPORT_UDPU, totemip_parse(), totemip_print(), totem_config::transport_number, and totem_config::version.
Referenced by main().
| int totem_config_validate | ( | struct totem_config * | totem_config, |
| const char ** | error_string | ||
| ) |
Definition at line 1777 of file totemconfig.c.
References totem_interface::bindnet, totem_config::broadcast_use, totem_interface::configured, totem_config::crypto_cipher_type, totem_config::crypto_hash_type, CS_OK, totem_ip_address::family, icmap_get_uint32(), INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_interface::knet_link_priority, totem_config::link_mode, totem_interface::mcast_addr, totem_interface::member_count, totem_interface::member_list, totem_config::net_mtu, totem_config::node_id, TOTEM_TRANSPORT_KNET, TOTEM_TRANSPORT_UDP, totemip_is_mcast(), totemip_print(), totem_config::transport_number, totem_interface::ttl, and totem_config::version.
Referenced by main().
1.8.8