diff --git a/candm.h b/candm.h index a23eadf..e7a76d2 100644 --- a/candm.h +++ b/candm.h @@ -550,11 +550,6 @@ typedef struct { #define RPY_SD_ST_CANDIDATE 4 #define RPY_SD_ST_OUTLIER 5 -#define RPY_SD_FLAG_NOSELECT 0x1 -#define RPY_SD_FLAG_PREFER 0x2 -#define RPY_SD_FLAG_TRUST 0x4 -#define RPY_SD_FLAG_REQUIRE 0x8 - typedef struct { IPAddr ip_addr; int16_t poll; diff --git a/cmdmon.c b/cmdmon.c index 20b1c2c..7ac79bc 100644 --- a/cmdmon.c +++ b/cmdmon.c @@ -601,11 +601,7 @@ handle_source_data(CMD_Request *rx_message, CMD_Reply *tx_message) tx_message->data.source_data.mode = htons(RPY_SD_MD_REF); break; } - tx_message->data.source_data.flags = - htons((report.sel_options & SRC_SELECT_PREFER ? RPY_SD_FLAG_PREFER : 0) | - (report.sel_options & SRC_SELECT_NOSELECT ? RPY_SD_FLAG_NOSELECT : 0) | - (report.sel_options & SRC_SELECT_TRUST ? RPY_SD_FLAG_TRUST : 0) | - (report.sel_options & SRC_SELECT_REQUIRE ? RPY_SD_FLAG_REQUIRE : 0)); + tx_message->data.source_data.flags = htons(0); tx_message->data.source_data.reachability = htons(report.reachability); tx_message->data.source_data.since_sample = htonl(report.latest_meas_ago); tx_message->data.source_data.orig_latest_meas = UTI_FloatHostToNetwork(report.orig_latest_meas); diff --git a/reports.h b/reports.h index 6f4a625..a41573b 100644 --- a/reports.h +++ b/reports.h @@ -37,7 +37,6 @@ typedef struct { int poll; enum {RPT_NTP_CLIENT, RPT_NTP_PEER, RPT_LOCAL_REFERENCE} mode; enum {RPT_SYNC, RPT_UNREACH, RPT_FALSETICKER, RPT_JITTERY, RPT_CANDIDATE, RPT_OUTLIER} state; - int sel_options; int reachability; unsigned long latest_meas_ago; /* seconds */ diff --git a/sources.c b/sources.c index ad2b225..9314069 100644 --- a/sources.c +++ b/sources.c @@ -1476,7 +1476,6 @@ SRC_ReportSource(int index, RPT_SourceReport *report, struct timespec *now) break; } - report->sel_options = src->sel_options; report->reachability = src->reachability; /* Call stats module to fill out estimates */