mirror of
https://github.com/sheumann/hush.git
synced 2025-02-02 01:35:53 +00:00
ntpd: make -w less cumbersome to use
function old new delta packed_usage 26767 26779 +12 recv_and_process_peer_pkt 808 817 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
28055028a7
commit
074e8dcba7
@ -3233,7 +3233,7 @@
|
|||||||
/* -N exists for mostly compat reasons, thus not essential to inform */ \
|
/* -N exists for mostly compat reasons, thus not essential to inform */ \
|
||||||
/* the user that it exists: user may use nice as well */ \
|
/* the user that it exists: user may use nice as well */ \
|
||||||
/* "\n -N Run at high priority" */ \
|
/* "\n -N Run at high priority" */ \
|
||||||
"\n -w Do not set time (used to look at peer data)" \
|
"\n -w Do not set time (only query peers), implies -n" \
|
||||||
"\n -l Run as server on port 123" \
|
"\n -l Run as server on port 123" \
|
||||||
"\n -p PEER Obtain time from PEER (may be repeated)" \
|
"\n -p PEER Obtain time from PEER (may be repeated)" \
|
||||||
|
|
||||||
|
@ -1466,7 +1466,7 @@ recv_and_process_peer_pkt(peer_t *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p->reachable_bits |= 1;
|
p->reachable_bits |= 1;
|
||||||
VERB1 {
|
if ((MAX_VERBOSE && G.verbose) || (option_mask32 & OPT_w)) {
|
||||||
bb_error_msg("reply from %s: reach 0x%02x offset %f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f",
|
bb_error_msg("reply from %s: reach 0x%02x offset %f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f",
|
||||||
p->p_dotted,
|
p->p_dotted,
|
||||||
p->reachable_bits,
|
p->reachable_bits,
|
||||||
@ -1733,7 +1733,7 @@ static NOINLINE void ntp_init(char **argv)
|
|||||||
|
|
||||||
/* Parse options */
|
/* Parse options */
|
||||||
peers = NULL;
|
peers = NULL;
|
||||||
opt_complementary = "dd:p::"; /* d: counter, p: list */
|
opt_complementary = "dd:p::wn"; /* d: counter; p: list; -w implies -n */
|
||||||
opts = getopt32(argv,
|
opts = getopt32(argv,
|
||||||
"nqNx" /* compat */
|
"nqNx" /* compat */
|
||||||
"wp:"IF_FEATURE_NTPD_SERVER("l") /* NOT compat */
|
"wp:"IF_FEATURE_NTPD_SERVER("l") /* NOT compat */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user