b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
baa33e79e3a64ce06830b4fc53d943d572cfb24f |
|
21-Jan-2016 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
timesyncd: use (void) to mark ignored value
CID #1325772. |
6ff6f4d851ba5b8e6f07a8e029986f13c2e63b9d |
|
05-Nov-2015 |
Michal Schmidt <mschmidt@redhat.com> |
timesync: return negative errno from manager_adjust_clock() on error |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
f4f15635ec05293ffcc83a5b39f624bbabbd8fd0 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move a number of fs operations into fs-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
2a1288ff89322a2f49c79f6d1832c8164c14a05c |
|
10-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
util: introduce CMSG_FOREACH() macro and make use of it everywhere
It's only marginally shorter then the usual for() loop, but certainly
more readable. |
481b3f9e998d1981e01915bed34f55ea99af1542 |
|
08-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: print an INFO log message when we successfully reached a time server |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
625b3b71c12d10601816eb7793d557bd2a22b575 |
|
16-Feb-2015 |
Cristian RodrÃguez <crrodriguez@opensuse.org> |
timesync: Use UINT64_C for OFFSET_1900_1970
So it matches what the comment says in both 32 and 64 bit systems. |
a38d99451f2bf8026ec51aee91662292e823c6a8 |
|
12-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"
This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656.
It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw
sockets. |
d6d810fbf8071f8510450dbacd1d083f37603656 |
|
10-Feb-2015 |
Cristian RodrÃguez <crrodriguez@opensuse.org> |
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC |
7e3254b3bae19221afefdb87b61ff92c755fd2f4 |
|
04-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: downgrade more log messages from LOG_INFO to LOG_DEBUG
https://bugs.freedesktop.org/show_bug.cgi?id=87505
Let's make timesyncd less chatty. |
7b5b3fc3ac34c3895e1ceb02f6a224b09a80427f |
|
04-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: reduce log chattiness a bit
Let's downgrade the statistics output from LOG_INFO to LOG_DEBUG.
https://bugs.freedesktop.org/show_bug.cgi?id=88926 |
43fcd650e5cb0836cfc9f667ed74b3bc0283a81c |
|
18-Jan-2015 |
Topi Miettinen <toiwoton@gmail.com> |
timesyncd: consider too long packets as invalid
If the received NTP message from server didn't fit to our buffer, either
it is doing something nasty or we don't know the protocol. Consider the
packet as invalid.
(David: add parantheses around conditional) |
fa66b606b1a79530bc0d7f70ff30955232e40694 |
|
25-Dec-2014 |
Cristian RodrÃguez <crrodriguez@opensuse.org> |
timesync: remove square(), use pow instead
In any case, the compiler generates the same code inline and never
actually calls the library function. |
f89c4e15c966cd3af22bd71bd5adba9a0a8e7404 |
|
30-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: minor simplification |
4a62c710b62a5a3c7a8a278b810b9d5b5a0c8f4f |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: another round of simplifications
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno
+ return simplifications". |
56f64d95763a799ba4475daf44d8e9f72a1bd474 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'
Plus some whitespace, linewrap, and indent adjustments. |
f647962d64e844689f3e2acfce6102fc47e76df2 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: yet more log_*_errno + return simplifications
Using:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg;
print;'
$f
done
And a couple of manual whitespace fixups. |
ff49bc3212cb07d850dcfd59940539773a0be26f |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: drop unnecessary trailing \n in log_*() calls |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
7b6288914b3b57e1c33c740eb705c5a6dd2655ca |
|
27-Nov-2014 |
Sean Young <sean@mess.org> |
timesyncd: do not keep listening socket open forever
This also makes the source port less predicatable. |
69f0081748fb4be1b7b772815e5c4202cdb88d3d |
|
24-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: the IP_TOS sockopt is really just an optimization, we shouldn't fail if we can't set it
This partially undos 2f905e821e0342c36f5a5d3a51d53aabccc800bd |
e4746b57387ffaf8be01c177ed4bbf02c8088341 |
|
21-Oct-2014 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
util: avoid duplication of TIME_T_MAX |
2f905e821e0342c36f5a5d3a51d53aabccc800bd |
|
18-Sep-2014 |
Tom Gundersen <teg@jklm.no> |
timesyncd: check return of setting IP_TOS
Fonud by Coverity. Fixes CID #1237534. |
ab4df227d466e881e4279821b5fc1563f0e7e933 |
|
02-Sep-2014 |
Kay Sievers <kay@vrfy.org> |
Revert "timesyncd: remove retry_timer logic which is covered by the server timeout"
This reverts commit 665c6a9eab46b0b253af6566ca9fc70c866b3fcd.
On Tue, Sep 2, 2014 at 3:17 PM, Miroslav Lichvar <mlichvar@redhat.com> wrote:
>
> With the other patch allowing missed replies included it's now getting
> stuck as there is no timer to send the 2nd and 3rd request. |
80cd2606b91ce2735a0609c6f964917cf12685aa |
|
02-Sep-2014 |
Kay Sievers <kay@vrfy.org> |
timesyncd: don't reset polling interval when reselecting server
Original patch from: Miroslav Lichvar <mlichvar@redhat.com> |
e8206972be6a7ebeb198cd0d400bc7a94a6a5fc5 |
|
02-Sep-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: allow two missed replies before reselecting server
After receiving a reply from the server, allow two missed replies before
switching to another server to avoid unnecessary clock hopping when
packets are getting lost in the network. |
665c6a9eab46b0b253af6566ca9fc70c866b3fcd |
|
02-Sep-2014 |
Kay Sievers <kay@vrfy.org> |
timesyncd: remove retry_timer logic which is covered by the server timeout |
63463bf091949e0178b749016828ec400c106582 |
|
02-Sep-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: wait before reconnecting to first server
When all servers are exhausted, wait for one poll interval before trying
to connect again to the first server in the list. Also, keep increasing
the polling interval to make sure a client not getting any valid replies
will not send requests to any server more frequently than is allowed by
the maximum polling interval. |
20f8d3cf1be4ad76234ffb85eeae7f9892ee72cd |
|
31-Aug-2014 |
Steven Noonan <steven@uplinklabs.net> |
timesyncd-manager: don't clear current_server_name if ServerAddress is NULL
https://bugs.freedesktop.org/show_bug.cgi?id=83091
[zj: add comment] |
3af0442c52090f34ae7a1c8e6b6587c540c06896 |
|
29-Aug-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: check root distance
NTPv4 servers don't reply with unsynchronized status when they lost
synchronization, they only keep increasing the root dispersion and it's
up to the client to decide at which point they no longer consider it
synchronized.
Ignore replies with root distance over 5 seconds. |
487a36821ea214a73e1d0dcbd6d84123b50d1135 |
|
29-Aug-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: get kernel timestamp in nanoseconds |
73c76e6330d31e1d04454fd7408dd56b4eedca9f |
|
29-Aug-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: fix calculation of transmit time
The kernel timestamp (recv_time) is made earlier than current time
(now_ts), use the timestamp captured before sending packet directly. |
07610e108e2d3f046da683a3a69c4d5cccd2cf8e |
|
29-Aug-2014 |
Miroslav Lichvar <mlichvar@redhat.com> |
timesyncd: check if stratum is valid |
c572db3ccf6678426c8c1c714b594973db84eebe |
|
13-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: don't trip up if networkd isn't running and can't tell us any NTP servers |
874ff7bf4d6fe693542209f127d23cd89adc499b |
|
12-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: beef up NTP server selection logic, and acquire NTP servers from DHCP |
84e51726a38e133ca42d2f30f0668d3921b210cb |
|
12-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
timesyncd: split up into multiple source file
The source file got much too large, hence split up the sources into
multiple per-object files, similar in style to resolved. |