summaryrefslogtreecommitdiff
path: root/presets
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-24 23:54:25 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-07 14:39:44 +0200
commitfb29cdbef21f1d66e2ebe600601897b6578d3959 (patch)
treeb0e0b17b4259ea901f706f8e365ed3b3817f12dd /presets
parent0d9d333672167f7c4586c1708eee53066ce8f55d (diff)
downloadsystemd-fb29cdbef21f1d66e2ebe600601897b6578d3959.tar.gz
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.
Diffstat (limited to 'presets')
0 files changed, 0 insertions, 0 deletions