Systemd/src/timesync
Lennart Poettering fb29cdbef2 tree-wide: make sure our control buffers are properly aligned
We always need to make them unions with a "struct cmsghdr" in them, so
that things properly aligned. Otherwise we might end up at an unaligned
address and the counting goes all wrong, possibly making the kernel
refuse our buffers.

Also, let's make sure we initialize the control buffers to zero when
sending, but leave them uninitialized when reading.

Both the alignment and the initialization thing is mentioned in the
cmsg(3) man page.
2020-05-07 14:39:44 +02:00
..
80-systemd-timesync.list timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
meson.build timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
org.freedesktop.timesync1.conf timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
org.freedesktop.timesync1.service timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
test-timesync.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
timesyncd-bus.c tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
timesyncd-bus.h timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
timesyncd-conf.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-conf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd-gperf.gperf timesync: fix typo 2018-01-10 20:52:59 +09:00
timesyncd-manager.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
timesyncd-manager.h tree-wide: replace 'unsigned int' with 'unsigned' 2018-10-19 22:19:12 +02:00
timesyncd-ntp-message.h timesync: save and expose NTP responce on bus 2018-05-03 18:05:14 +09:00
timesyncd-server.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-server.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
timesyncd.conf.in timesync: make poll interval configurable 2017-11-08 01:47:38 +09:00