summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
AgeCommit message (Collapse)Author
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-11-13from sthen: handle msgbuf_write() returning EAGAINSebastian Benoit
ok krw
2013-10-21remove the IPv4-only check for rdomains, allows IPv6 to use themPeter Hessler
OK claudio@ henning@
2013-10-16tidy up the "modifier" list a little and sync usage();Jason McIntyre
NB: this utility has only one option, and it's not optional! i haven;t marked -s as being mandatory, since hopefully someone will make ntpctl run without arguments do something useful;
2013-10-15Remove stray (long) cast of value being assigned to tv_secs.Kenneth R Westerback
ok guenther@
2013-10-11improve ntpctl argv parsingTheo de Raadt
2013-10-09shorten output; ok henning phesslerTheo de Raadt
2013-10-06tweak previous;Jason McIntyre
2013-10-04Tweak previous:Ingo Schwarze
* For time_t values, use the printf("%lld", (long long)t) idiom. * Don't print "Invalid program name" in usage() when main() just runs ntpd. * Make "Show/Shows" consistent in the manual, sort .Xr and correct .Ox. OK phessler@
2013-10-04Add ntpctl(8), which allows us to query the locally running ntpd(8) processPeter Hessler
diff from Mike Miller <mmiller mgm51 com> (many thanks!) OK phessler@, henning@, todd@
2013-09-28Resolve the uncertainty in the REFID assignment.Peter Hessler
Previously, when there is an even number of offsets, we did the average of the two middle offets but would set the REFID from one of them. Instead, we simply select the middle offset with the lowest delay. diff from Mike Miller <mmiller mgm51 com> (many thanks!) OK phessler@, henning@
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-04-30Remove unused function argument variables 'len' and 'auth' fromMarcus Glocker
ntp_sendmsg(). They have been removed from the function body in the past but not from the argument list. From Maxime Villard
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-20Allow ntpd.conf to assign a stratum to a sensor with the syntax stratum <level>.Patrick Wildt
OK markus@ henning@ phessler@ jmc@
2012-09-19clarify which process writes out stats upong SIGINFO reception.Henning Brauer
pointed out by Frank Brodbeck <fab at guug.de>, actual change with & ok jmc
2012-08-30rfc 5905 replaces rfc 2030; for now, the reference to 2030 in ntpd.confJason McIntyre
stays; ok henning
2011-12-28only add the rdomain for hostname lookups, when we have a hostname to lookup.Peter Hessler
noticed by zepard at gmail OK henning@
2011-09-21fix the two most offensive indentation violations in here.Peter Hessler
pointed out by sthen@
2011-09-21Add rdomain support to NTPd.Peter Hessler
This basically adds the "rtable %d" keyword to "listen on", "server", "servers" keywords, to specify which routing table to use. OK henning@ claudio@ sthen@ manpage reviewed by jmc@
2011-09-17tweak previous;Jason McIntyre
2011-09-17improve -s description. the major points are set vs adjust and stay inHenning Brauer
the forground until we receive a reply or hit the 15 second timeout. with theo, evolved out of sth completely different
2011-07-08tweak previous;Jason McIntyre
2011-07-07timed's time is up. use ntpd(8). Even our own fossil developersTheo de Raadt
switched a while back. ok miod, kettenis
2011-06-17close pipe_prnt[0] earlier, foremost before forking the dns processHenning Brauer
pointed out by Running Razor <runningrazor at web dot de>
2011-06-16clamp stratum to NTP_MAXSTRATUM. lingering in my tree for ages. someone likelyHenning Brauer
deserves to get credited for this, but I have no idea where that came from
2011-03-19use timerclear macroOkan Demirmen
ok henning@
2010-08-03fix linecount bug with comments spanning multiple linesHenning Brauer
problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
2010-07-01don't need to setup the resolver early now that dns lookups are doneEric Faurot
by the dns engine. ok henning@
2010-05-26Move imsg into libutil and add a man page.Nicholas Marriott
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-04-27imsg.h does not need sys/tree.h.Nicholas Marriott
ok eric
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-07Remove XXX comment and just close received fd if calloc() fails.Nicholas Marriott
If this happens the imsg may no longer be usable as there may be queued messages, but this is a) already the case with the code now, and b) would be the case if recvmsg() fails anyway, so we can document that -1 from imsg_read() invalidates the struct imsgbuf. discussed with and ok eric
2009-09-15Enclose repeated buffer draining code in a new msgbuf_drain()Jacek Masiulaniec
function, which is additionally exported for use by others. It will be needed by smtpd's SSL module when the SMTP client code is changed to replace libevent's evbuffers with our msgbuf_* API. ok gilles@ henning@ guenther@ eric@
2009-08-08Make imsg_clear close and free any fds in the received fd queue as well asNicholas Marriott
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
2009-07-23make buf_write() behave like msgbuf_write(): send out only theEric Faurot
bytes that were filled, not the whole buffer. ok pyr@ gilles@
2009-06-25incorrect .PATH setting, discovered with nicmTheo de Raadt
2009-06-24recvmsg ENOENT noncritical tooHenning Brauer
2009-06-17ENOPROTOOPT is non-fatal on recvfrom, can apparently happen with ipvshitHenning Brauer
2009-06-11effectively un-do r1.111, it fucks machines with bad clocks royally.Henning Brauer
spotted the hard way by theo on armish, pinned to this changed by me. no cookie for ckuethe for not testing on machines with bad clocks.
2009-06-08revert this change by eric@:David Gwynne
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.
2009-06-07Change the way fds passed over a socket are retreived on the receiving side.Eric Faurot
Currently the receiver fetches an imsg via imsg_get() and if he expects an fd, he then calls imsg_get_fd() to fetch the next fd queued on the imsgbuf from which the imsg came. This changes hides the fd queueing mechanism to the API user. When closing an imsg with an fd, the message is flagged so that the receiving end knows it must dequeue the fd in imsg_get() and return it with the imsg structure. This way there is no (less) possible screw up from imsg_get_fd() not being called directly after imsg_get() by the user. The retreived imsg is self-contained. ok pyr@, "I like that" henning@
2009-06-07Make the imsg protocol network-safe.Eric Faurot
ok pyr@
2009-06-06change the imsg header fields a bit to prepare for upcoming changes.Eric Faurot
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
2009-06-06If ntpd decides the clock has become unsynced, reset the number of savedChris Kuethe
time corrections. Once the clock is synced again, start computing a fresh frequency correction. ok henning
2009-06-06Turns up the polling rate of sensors and makes ntpd calculate frequencyChris Kuethe
corrections more often. Due to physical effects crystal oscillators aren't really stable beyond 1000s or so - at least not the kind found in pc's. ok henning
2009-06-06make ntpd imsg-in-a-lib ready as well. extensive testing done, noPierre-Yves Ritschard
behavior change. ok eric@
2009-06-04After calling adjfreq to correct the clock's rate, measure and fix the clockChris Kuethe
offset. This avoids future frequency adjustments based on measurements of a clock that was being adjusted. End result: more stable clock and better frequency convergence. Also, fix a mis-ordered structure member while I'm here. ok henning
2009-06-01no we don't need endpwentHenning Brauer
i remember we already had the confusion and bgpd doesn't have the endpwent