#include "utils.h" /* for cp */
#include "xalloc.h"
-int pinginterval = 0; /* seconds between pings */
-int pingtimeout = 0; /* seconds to wait for response */
-
static int config_compare(const config_t *a, const config_t *b) {
int result;
char *fname;
bool x;
- xasprintf(&fname, "%s" SLASH "tinc.conf", confbase);
+ xasprintf(&fname, "%s" SLASH "meshlink.conf", mesh->confbase);
errno = 0;
x = read_config_file(mesh->config, fname);
char *fname;
bool x;
- xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, name);
+ xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name);
x = read_config_file(config_tree, fname);
free(fname);
bool append_config_file(const char *name, const char *key, const char *value) {
char *fname;
- xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, name);
+ xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name);
FILE *fp = fopen(fname, "a");