Include both refid and IP address in tracking and sourcestats reports

ref_id is not sufficient for IPv6 addresses and ref_id is needed for
reference clocks.
This commit is contained in:
Miroslav Lichvar
2009-10-13 16:04:24 +02:00
parent fbd20c429e
commit 1570f97ee2
7 changed files with 40 additions and 6 deletions

View File

@@ -55,6 +55,7 @@ typedef struct {
typedef struct {
unsigned long ref_id;
IPAddr ip_addr;
unsigned long stratum;
struct timeval ref_time;
struct timeval current_correction;
@@ -66,6 +67,7 @@ typedef struct {
} RPT_TrackingReport;
typedef struct {
unsigned long ref_id;
IPAddr ip_addr;
unsigned long n_samples;
unsigned long n_runs;