ntp: use one socket with random port when acquisitionport is 0

This commit is contained in:
Miroslav Lichvar
2014-08-14 15:57:09 +02:00
parent 61b629fdad
commit d18c071849
3 changed files with 7 additions and 4 deletions

2
conf.c
View File

@@ -79,7 +79,7 @@ static void parse_tempcomp(char *);
static int restarted = 0;
static int generate_command_key = 0;
static char *rtc_device = "/dev/rtc";
static int acquisition_port = 0; /* 0 means let kernel choose port */
static int acquisition_port = -1;
static int ntp_port = 123;
static char *keys_file = NULL;
static char *drift_file = NULL;