summaryrefslogtreecommitdiff
path: root/networking/ntpd.c
AgeCommit message (Collapse)Author
2012-03-08ntpd: drop offset averaging codeDenys Vlasenko
function old new delta filter_datapoints 475 174 -301 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-06ntpd: tweak log messages formatDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-05ntpd: fix a case when discipline_jitter = 0 if we stepDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-05ntpd: experimental code to correct frequency a bit more aggressivelyDenys Vlasenko
function old new delta update_local_clock 730 792 +62 recv_and_process_peer_pkt 850 835 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-03ntpd: fix the "are we a server" check in previous commitDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-03ntpd: avoid printing messages between send and recv. good for fast networksDenys Vlasenko
function old new delta ntpd_main 887 929 +42 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-02ntpd: log clock drift with three digits after decimal pointDenys Vlasenko
+15 bytes. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-02ntpd: log jitter on update too; increase assumed clock precision x2 - to 2msDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-02-28ntpd: fix offset adjustment after step; better step printingDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-02-23ntpd: increase OPT_qq constant to not collide with -LDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-06-05*: remove "Options:" string from help textsDenys Vlasenko
function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-16The [-Wunused-but-set-variable] warningsCristian Ionescu-Idbohrn
networking/ntpd.c:1748:19: warning: variable 'version' set but not used Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-04-11move remaining help text from include/usage.src.hPere Orga
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-04-07ntpd: decrease ntpd -q "no response" timeout to 10 secDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-03whitespace fixesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-29whitespace cleanupDenys Vlasenko
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-20ntpd: fix usage text and a typo in constant nameLeonid Lisovskiy
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-04ntpd: allow peer-less (standalone stratum 1 server) operationDenys Vlasenko
Based on patch by Jean-Christophe Dubois (jcd@tribudubois.net) function old new delta ntp_init 384 399 +15 recv_and_process_client_pkt 469 480 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-27ntpd: with -q, exit after 60 seconds even if time is not synced.Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-16*: make GNU licensing statement forms more regularDenys Vlasenko
This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-26*: more empty lines removed. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-26*: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-24ntpd: step correction to variables had wrong sign, fixingDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-18*: code shrink and better "died from signal" reporting from wait4pidDenys Vlasenko
function old new delta parse 964 967 +3 udhcp_run_script 670 665 -5 singlemount 911 906 -5 mount_it_now 360 355 -5 inotifyd_main 521 516 -5 xspawn 21 - -21 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-25ntpd: explain why scripts can be run in quick successionDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-17ntpd: remove some code which is at best unneeded and at worst wrongDenys Vlasenko
function old new delta step_time 246 256 +10 ntpd_main 855 844 -11 update_local_clock 767 714 -53 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-17ntpd: add anti-clock-hopping codeDenys Vlasenko
function old new delta select_and_cluster 837 950 +113 update_local_clock 759 767 +8 root_distance 61 - -61 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-17ntpd: disable frequency estimation codeDenys Vlasenko
function old new delta reset_peer_stats 164 168 +4 ntp_init 371 368 -3 recv_and_process_peer_pkt 869 852 -17 update_local_clock 823 759 -64 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-84) Total: -80 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-11ntpd: explain algorithmDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-11ntpd: expose more data to the script; more eagerly drop to lower pollDenys Vlasenko
function old new delta run_script 340 395 +55 recv_and_process_peer_pkt 817 869 +52 passwd_main 1027 1058 +31 ntpd_main 845 855 +10 update_local_clock 853 823 -30 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/1 up/down: 148/-30) Total: 118 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-07ntpd: show at loglevel 2 and export in env current poll intervalDenys Vlasenko
function old new delta run_script 273 340 +67 ntpd_main 832 845 +13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-07hwclock: disable time diff code; ntpd -S script: do not wait for completionDenys Vlasenko
function old new delta rtcname 4 - -4 run_script 278 273 -5 hwclock_main 466 439 -27 read_rtc 86 38 -48 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-84) Total: -84 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-06ntpd: renew cur_time after script run, it can take a whileDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-06ntpd: add -S PROG option. This feature is crucial for CMOS/RTC syncronizationDenys Vlasenko
function old new delta run_script 112 278 +166 ntpd_main 779 825 +46 update_local_clock 824 858 +34 packed_usage 26518 26540 +22 ntp_init 366 371 +5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 273/0) Total: 273 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-04ntpd: make -w less cumbersome to useDenys Vlasenko
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>
2010-01-04ntpd: add -w "watch" option, useful for debugging to look at our own dataDenys Vlasenko
Also fixed a small buglet discovered using -w function old new delta recv_and_process_peer_pkt 895 944 +49 select_and_cluster 1132 1150 +18 packed_usage 26769 26767 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-03ntpd: fix comment, no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-03ntpd: try to avoid using libm. -1.2k if we succeedDenys Vlasenko
uclibc's sqrt(x) is pathetic, 411 bytes? it can be ~100... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-03ntpd: remove an old hack for faster initializationDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-03ntpd: better selection of initial sync; fewer gettimeofday callsDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-02ntpd: fix jitter calculations and status propagationDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-02ntpd: speed up reaction to poll interval decreaseDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-02ntpd: improve frequency filteringDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: restore forgotten delay sanitizationDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: add a comment, no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: disable unused code; show kernel's clock drift correctionDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: reduce poll interval increase rateDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: replace openntp's clock discipline with ntpd'sDenys Vlasenko
It seems to be much more precise. +2.2k: text data bss dec hex filename 4670 0 0 4670 123e busybox.t2/networking/ntpd.o 6838 0 0 6838 1ab6 busybox.t3/networking/ntpd.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-01ntpd: ntpd.c -> ntpd_simple.cDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-30ntpd: preparatory patches, no functional changesDenys Vlasenko
function old new delta ntp_init 354 357 +3 ntpd_main 2945 2898 -47 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>