aboutsummaryrefslogtreecommitdiff
path: root/networking/atlasinit.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/atlasinit.h')
-rw-r--r--networking/atlasinit.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/networking/atlasinit.h b/networking/atlasinit.h
new file mode 100644
index 0000000..f7362a6
--- /dev/null
+++ b/networking/atlasinit.h
@@ -0,0 +1,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