corosync  2.4.2-dirty
Macros | Functions
totemconfig.c File Reference
#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 <netinet/in.h>
#include <arpa/inet.h>
#include <sys/param.h>
#include <corosync/swab.h>
#include <corosync/list.h>
#include <qb/qbdefs.h>
#include <corosync/totem/totem.h>
#include <corosync/logsys.h>
#include <corosync/icmap.h>
#include "util.h"
#include "totemconfig.h"
Include dependency graph for totemconfig.c:

Go to the source code of this file.

Macros

#define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST   4
 
#define TOKEN_TIMEOUT   1000
 
#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 MAX_NETWORK_DELAY   50
 
#define WINDOW_SIZE   50
 
#define MAX_MESSAGES   17
 
#define MISS_COUNT_CONST   5
 
#define RRP_PROBLEM_COUNT_TIMEOUT   2000
 
#define RRP_PROBLEM_COUNT_THRESHOLD_DEFAULT   10
 
#define RRP_PROBLEM_COUNT_THRESHOLD_MIN   2
 
#define RRP_AUTORECOVERY_CHECK_TIMEOUT   1000
 
#define DEFAULT_PORT   5405
 

Functions

int totem_config_find_local_addr_in_nodelist (const char *ipaddr_key_prefix, unsigned int *node_pos)
 
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)
 

Macro Definition Documentation

#define DEFAULT_PORT   5405

Definition at line 81 of file totemconfig.c.

Referenced by totem_config_read().

#define DOWNCHECK_TIMEOUT   1000

Definition at line 68 of file totemconfig.c.

#define FAIL_TO_RECV_CONST   2500

Definition at line 69 of file totemconfig.c.

#define JOIN_TIMEOUT   50

Definition at line 66 of file totemconfig.c.

#define MAX_MESSAGES   17

Definition at line 74 of file totemconfig.c.

#define MAX_NETWORK_DELAY   50

Definition at line 72 of file totemconfig.c.

#define MERGE_TIMEOUT   200

Definition at line 67 of file totemconfig.c.

#define MINIMUM_TIMEOUT   (int)(1000/HZ)*3

Definition at line 71 of file totemconfig.c.

#define MISS_COUNT_CONST   5

Definition at line 75 of file totemconfig.c.

#define RRP_AUTORECOVERY_CHECK_TIMEOUT   1000

Definition at line 79 of file totemconfig.c.

#define RRP_PROBLEM_COUNT_THRESHOLD_DEFAULT   10

Definition at line 77 of file totemconfig.c.

#define RRP_PROBLEM_COUNT_THRESHOLD_MIN   2

Definition at line 78 of file totemconfig.c.

#define RRP_PROBLEM_COUNT_TIMEOUT   2000

Definition at line 76 of file totemconfig.c.

#define SEQNO_UNCHANGED_CONST   30

Definition at line 70 of file totemconfig.c.

#define TOKEN_COEFFICIENT   650

Definition at line 65 of file totemconfig.c.

#define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST   4

Definition at line 63 of file totemconfig.c.

#define TOKEN_TIMEOUT   1000

Definition at line 64 of file totemconfig.c.

#define WINDOW_SIZE   50

Definition at line 73 of file totemconfig.c.

Function Documentation

int totem_config_find_local_addr_in_nodelist ( const char *  ipaddr_key_prefix,
unsigned int *  node_pos 
)
int totem_config_keyread ( struct totem_config totem_config,
const char **  error_string 
)
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 
)