aboutsummaryrefslogtreecommitdiff
path: root/networking/atlasinit.h
blob: f7362a6b1a0185bec9c111bfe2407e8e47f85728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* RIPEAtlas
 * All the configurable variables - and some non configurables too
 * $Id: $
 */

#ifndef _ATLASINIT_H
#define _ATLASINIT_H

#define ATLAS_BUF_SIZE 1024 
#define MAX_READ ATLAS_BUF_SIZE-2  /* should be enough to read controller keys */

/*********************************************************************
 * Set these constants to your liking
 */

extern const char atlas_log_file[];
extern const int atlas_log_level;

extern const char atlas_contr_known_hosts[];
extern const char atlas_rereg_timestamp[];

extern const int max_lines; /* maximum lines we'll process */
extern const int min_rereg_time; /* 12h */
extern const int max_rereg_time; /* 28d */
extern const int default_rereg_time; /* 7d */

/*********************************************************************/

enum { ALL, DEBUG, INFO, WARN, ERROR } error_level;

void atlas_log( int level, const char *msg, ... );

#endif