Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Add script useful for timing ntpd startup
· 3a1b0817
Hal Murray
authored
Aug 19, 2017
3a1b0817
Fix for iburst on DNS for both server and pool
· e436fa68
Hal Murray
authored
Aug 19, 2017
e436fa68
Hide whitespace changes
Inline
Side-by-side
ntpd/ntp_proto.c
View file @
e436fa68
...
...
@@ -2406,7 +2406,7 @@ fast_xmit(
/*
*
server_take_dns
- process DNS query for server.
*
dns_take_server
- process DNS query for server.
*/
void
dns_take_server
(
...
...
@@ -2446,11 +2446,13 @@ dns_take_server(
server
->
hpoll
=
server
->
minpoll
;
server
->
nextdate
=
current_time
;
peer_xmit
(
server
);
if
(
server
->
flags
&
FLAG_IBURST
)
server
->
retry
=
NTP_RETRY
;
poll_update
(
server
,
server
->
hpoll
);
}
/*
pool
_take_
dns
- process DNS query for pool.
dns
_take_
pool
- process DNS query for pool.
*/
void
dns_take_pool
(
...
...
@@ -2478,6 +2480,8 @@ dns_take_pool(
FLAG_PREEMPT
|
(
FLAG_IBURST
&
pool
->
flags
),
MDF_UCAST
|
MDF_UCLNT
,
0
,
0
,
false
);
peer_xmit
(
peer
);
if
(
peer
->
flags
&
FLAG_IBURST
)
peer
->
retry
=
NTP_RETRY
;
poll_update
(
peer
,
peer
->
hpoll
);
restrict_mask
=
restrictions
(
&
peer
->
srcadr
);
...
...
tests/time-startup.sh
0 → 100755
View file @
e436fa68
#!/bin/sh
# Hack to measure startup timing
# FIXME - needed on Fedora
export
PYTHONPATH
=
/usr/local/lib/python2.7/site-packages
if
test
"$#"
-ge
1
then
CONF
=
$1
else
CONF
=
/etc/ntp.conf
fi
killall ntpd
sleep
5
time
/usr/local/sbin/ntpd
-u
ntp:ntp
-g
-c
$CONF
/usr/local/bin/ntpwait
-v
-n
999
-s
1
/usr/local/bin/ntpq
-np