|
corosync
3.0.3
|
#include <config.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <errno.h>#include <unistd.h>#include <sys/socket.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <ifaddrs.h>#include <netdb.h>#include <netinet/in.h>#include <arpa/inet.h>#include <sys/param.h>#include <sys/utsname.h>#include <corosync/swab.h>#include <qb/qblist.h>#include <qb/qbdefs.h>#include <libknet.h>#include <corosync/totem/totem.h>#include <corosync/logsys.h>#include <corosync/icmap.h>#include "util.h"#include "totemconfig.h"
Go to the source code of this file.
Macros | |
| #define | TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4 |
| #define | TOKEN_TIMEOUT 1000 |
| #define | TOKEN_WARNING 75 |
| #define | TOKEN_COEFFICIENT 650 |
| #define | JOIN_TIMEOUT 50 |
| #define | MERGE_TIMEOUT 200 |
| #define | DOWNCHECK_TIMEOUT 1000 |
| #define | FAIL_TO_RECV_CONST 2500 |
| #define | SEQNO_UNCHANGED_CONST 30 |
| #define | MINIMUM_TIMEOUT (int)(1000/HZ)*3 |
| #define | MINIMUM_TIMEOUT_HOLD (int)(MINIMUM_TIMEOUT * 0.8 - (1000/HZ)) |
| #define | MAX_NETWORK_DELAY 50 |
| #define | WINDOW_SIZE 50 |
| #define | MAX_MESSAGES 17 |
| #define | MISS_COUNT_CONST 5 |
| #define | BLOCK_UNLISTED_IPS 1 |
| #define | KNET_PING_INTERVAL 1000 |
| #define | KNET_PING_TIMEOUT 2000 |
| #define | KNET_PING_PRECISION 2048 |
| #define | KNET_PONG_COUNT 2 |
| #define | KNET_PMTUD_INTERVAL 30 |
| #define | KNET_DEFAULT_TRANSPORT KNET_TRANSPORT_UDP |
| #define | DEFAULT_PORT 5405 |
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) |
| #define BLOCK_UNLISTED_IPS 1 |
Definition at line 82 of file totemconfig.c.
| #define DEFAULT_PORT 5405 |
Definition at line 92 of file totemconfig.c.
| #define DOWNCHECK_TIMEOUT 1000 |
Definition at line 73 of file totemconfig.c.
| #define FAIL_TO_RECV_CONST 2500 |
Definition at line 74 of file totemconfig.c.
| #define JOIN_TIMEOUT 50 |
Definition at line 71 of file totemconfig.c.
| #define KNET_DEFAULT_TRANSPORT KNET_TRANSPORT_UDP |
Definition at line 90 of file totemconfig.c.
| #define KNET_PING_INTERVAL 1000 |
Definition at line 85 of file totemconfig.c.
| #define KNET_PING_PRECISION 2048 |
Definition at line 87 of file totemconfig.c.
| #define KNET_PING_TIMEOUT 2000 |
Definition at line 86 of file totemconfig.c.
| #define KNET_PMTUD_INTERVAL 30 |
Definition at line 89 of file totemconfig.c.
| #define KNET_PONG_COUNT 2 |
Definition at line 88 of file totemconfig.c.
| #define MAX_MESSAGES 17 |
Definition at line 80 of file totemconfig.c.
| #define MAX_NETWORK_DELAY 50 |
Definition at line 78 of file totemconfig.c.
| #define MERGE_TIMEOUT 200 |
Definition at line 72 of file totemconfig.c.
| #define MINIMUM_TIMEOUT (int)(1000/HZ)*3 |
Definition at line 76 of file totemconfig.c.
| #define MINIMUM_TIMEOUT_HOLD (int)(MINIMUM_TIMEOUT * 0.8 - (1000/HZ)) |
Definition at line 77 of file totemconfig.c.
| #define MISS_COUNT_CONST 5 |
Definition at line 81 of file totemconfig.c.
| #define SEQNO_UNCHANGED_CONST 30 |
Definition at line 75 of file totemconfig.c.
| #define TOKEN_COEFFICIENT 650 |
Definition at line 70 of file totemconfig.c.
| #define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4 |
Definition at line 67 of file totemconfig.c.
| #define TOKEN_TIMEOUT 1000 |
Definition at line 68 of file totemconfig.c.
| #define TOKEN_WARNING 75 |
Definition at line 69 of file totemconfig.c.
| #define WINDOW_SIZE 50 |
Definition at line 79 of file totemconfig.c.
| int totem_config_keyread | ( | struct totem_config * | totem_config, |
| const char ** | error_string | ||
| ) |
Definition at line 2116 of file totemconfig.c.
References totem_config::crypto_cipher_type, totem_config::crypto_hash_type, CS_OK, icmap_get_string(), totem_config::private_key, and totem_config::private_key_len.
| int totem_config_read | ( | struct totem_config * | totem_config, |
| const char ** | error_string, | ||
| uint64_t * | warnings | ||
| ) |
Definition at line 1681 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 1889 of file totemconfig.c.
References totem_interface::bindnet, totem_config::broadcast_use, totem_interface::configured, CS_OK, totem_ip_address::family, icmap_get_uint32(), INTERFACE_MAX, totem_config::interfaces, totem_interface::ip_port, totem_interface::knet_link_priority, totem_interface::mcast_addr, totem_interface::member_count, totem_interface::member_list, 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.
1.8.17