]> git.ipfire.org Git - thirdparty/chrony.git/commit
socket: enable only specified IP families
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 17 Jun 2020 10:06:21 +0000 (12:06 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 17 Jun 2020 13:24:55 +0000 (15:24 +0200)
commit27e20a568b60658f1c8ce6daa7b373f94fbc3579
tree26179b95f82188896bea213eaa55dd824b0cde19
parent80316de3b8d57f184f9a0a48b09af3f6bd3df4c1
socket: enable only specified IP families

Allow an IP family to be specified in the socket initialization in order
to globally disable the other family. This replaces the ntp_io and
cmdmon code handling the -4/-6 options and fixes a case where the NTP
client could still use a disabled family if the source was specified
with an IP address.
12 files changed:
client.c
cmdmon.c
cmdmon.h
main.c
ntp_io.c
ntp_io.h
nts_ke_server.c
socket.c
socket.h
stubs.c
test/unit/ntp_core.c
test/unit/ntp_sources.c