diff options
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r-- | networking/ntpd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 991c518f6..1ebdc34c3 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1116,20 +1116,25 @@ fit(peer_t *p, double rd) | |||
1116 | { | 1116 | { |
1117 | if ((p->reachable_bits & (p->reachable_bits-1)) == 0) { | 1117 | if ((p->reachable_bits & (p->reachable_bits-1)) == 0) { |
1118 | /* One or zero bits in reachable_bits */ | 1118 | /* One or zero bits in reachable_bits */ |
1119 | VERB4 bb_error_msg("peer %s unfit for selection: unreachable", p->p_dotted); | 1119 | VERB4 bb_error_msg("peer %s unfit for selection: " |
1120 | "unreachable", p->p_dotted); | ||
1120 | return 0; | 1121 | return 0; |
1121 | } | 1122 | } |
1122 | #if 0 /* we filter out such packets earlier */ | 1123 | #if 0 /* we filter out such packets earlier */ |
1123 | if ((p->lastpkt_status & LI_ALARM) == LI_ALARM | 1124 | if ((p->lastpkt_status & LI_ALARM) == LI_ALARM |
1124 | || p->lastpkt_stratum >= MAXSTRAT | 1125 | || p->lastpkt_stratum >= MAXSTRAT |
1125 | ) { | 1126 | ) { |
1126 | VERB4 bb_error_msg("peer %s unfit for selection: bad status/stratum", p->p_dotted); | 1127 | VERB4 bb_error_msg("peer %s unfit for selection: " |
1128 | "bad status/stratum", p->p_dotted); | ||
1127 | return 0; | 1129 | return 0; |
1128 | } | 1130 | } |
1129 | #endif | 1131 | #endif |
1130 | /* rd is root_distance(p) */ | 1132 | /* rd is root_distance(p) */ |
1131 | if (rd > MAXDIST + FREQ_TOLERANCE * (1 << G.poll_exp)) { | 1133 | if (rd > MAXDIST + FREQ_TOLERANCE * (1 << G.poll_exp)) { |
1132 | VERB4 bb_error_msg("peer %s unfit for selection: root distance too high", p->p_dotted); | 1134 | VERB3 bb_error_msg("peer %s unfit for selection: " |
1135 | "root distance %f too high, jitter:%f", | ||
1136 | p->p_dotted, rd, p->filter_jitter | ||
1137 | ); | ||
1133 | return 0; | 1138 | return 0; |
1134 | } | 1139 | } |
1135 | //TODO | 1140 | //TODO |