Systemd/src/resolve
Lennart Poettering 9e45fb09bf netlink: port to recvmsg_safe()
This also makes sure the control buffer is properly aligned. This
matters, as otherwise the control buffer might not be aligned and the
cmsg buffer counting might be off. The incorrect alignment is becoming
visible by using recvmsg_safe() as we suddenly notice the MSG_CTRUNC bit
set because of this.

That said, apparently this isn't enough to make this work on all
kernels. Since I couldn't figure this out, we now add 1K to the buffer
to be sure. We do this once already, also for a pktinfo structure
(though an IPv4/IPv6) one. I am puzzled by this, but this shouldn't
matter much. it works locally just fine, except for those ubuntu CI
kernels...

While we are at it, make some other changes too, to simplify and
modernize the function.
2020-05-12 10:47:06 +02:00
..
dns-type.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
dns-type.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
dns_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
generate-dns_type-gperf.py tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
generate-dns_type-list.sed meson: build systemd using meson 2017-04-23 21:47:26 -04:00
meson.build shared: move in_addr_ifindex_name_from_string_auto() there 2020-05-07 22:36:52 +02:00
org.freedesktop.resolve1.conf
org.freedesktop.resolve1.policy polkit: fix typo 2019-09-20 21:02:47 +09:00
org.freedesktop.resolve1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
resolv.conf resolve: enable EDNS0 towards the 127.0.0.53 stub resolver 2018-12-17 15:15:18 +01:00
resolvconf-compat.c Rename EXTRACT_QUOTES to EXTRACT_UNQUOTE 2019-06-28 11:35:05 +02:00
resolvconf-compat.h tree-wide: add multiple inclusion guard 2018-06-25 13:04:59 +09:00
resolvectl.c resolve: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
resolvectl.h resolvectl: remove allow_loopback parameter from ifname_mangle() 2018-12-05 18:46:23 +01:00
resolved-bus.c resolve: fix type of parameter and update man page 2020-05-06 15:02:38 +02:00
resolved-bus.h resolved: convert to the new scheme 2020-05-05 22:36:37 +02:00
resolved-conf.c shared: move in_addr_ifindex_name_from_string_auto() there 2020-05-07 22:36:52 +02:00
resolved-conf.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-def.h resolve: expose dns_server_address_valid() 2019-07-17 06:59:12 +09:00
resolved-dns-answer.c resolved: fix typo in an unused function and add comment 2020-04-16 20:30:50 +02:00
resolved-dns-answer.h tree-wide: always declare bitflag enums the same way 2019-01-07 17:50:39 +01:00
resolved-dns-cache.c resolved: switch cache option to a tri-state option (systemd#5552). 2019-07-17 10:42:53 -04:00
resolved-dns-cache.h resolved: switch cache option to a tri-state option (systemd#5552). 2019-07-17 10:42:53 -04:00
resolved-dns-dnssec.c Remove dnssec_canonicalize function which is no longer used 2020-02-24 10:20:12 +00:00
resolved-dns-dnssec.h Remove dnssec_canonicalize function which is no longer used 2020-02-24 10:20:12 +00:00
resolved-dns-packet.c Canonicalise names in DNS responses per RFC4034 requirements 2020-02-24 10:56:13 +00:00
resolved-dns-packet.h resolved: don't let EDNS0 OPT dgram size affect TCP 2019-03-13 19:34:05 +01:00
resolved-dns-query.c resolved: keep stub stream connections up for as long as client wants 2019-02-15 17:13:58 +01:00
resolved-dns-query.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-question.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
resolved-dns-question.h resolved: use a temporary Set to speed up dns question parsing 2019-03-04 15:53:37 +01:00
resolved-dns-rr.c travis: turn on nonnull-attribute on Fuzzit 2019-06-15 23:12:24 +02:00
resolved-dns-rr.h headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
resolved-dns-scope.c resolved: fix minor confusion in comment 2020-04-20 12:16:56 +02:00
resolved-dns-scope.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-search-domain.c resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-search-domain.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-server.c resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-server.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-stream.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
resolved-dns-stream.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-stub.c tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call 2019-04-10 22:11:18 +02:00
resolved-dns-stub.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolved-dns-synthesize.c util: drop missing.h from socket-util.h 2018-12-06 13:31:16 +01:00
resolved-dns-synthesize.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolved-dns-transaction.c resolved: return org.freedesktop.resolve1.DnsError.NXDOMAIN on LLMNR resolution failure 2020-04-20 15:33:18 +02:00
resolved-dns-transaction.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-trust-anchor.c basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
resolved-dns-trust-anchor.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolved-dns-zone.c resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dns-zone.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolved-dnssd-bus.c resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dnssd-bus.h resolved: convert to the new scheme 2020-05-05 22:36:37 +02:00
resolved-dnssd-gperf.gperf resolved: add enablers for DNS-SD 2017-12-08 14:29:27 +02:00
resolved-dnssd.c tree-wide: support a bunch of additional specifiers 2020-04-28 22:47:21 +02:00
resolved-dnssd.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
resolved-dnstls-gnutls.c resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-dnstls-gnutls.h resolved: check for IP in certificate when using DoT with GnuTLS 2019-10-29 20:32:18 +01:00
resolved-dnstls-openssl.c resolved: Fix build error due to missing include. 2020-05-07 03:05:50 -07:00
resolved-dnstls-openssl.h resolved: move TLS data shared by all servers to manager 2019-06-18 19:16:36 +02:00
resolved-dnstls.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-etc-hosts.c tree-wide: use "hostname" spelling everywhere 2020-04-21 16:58:04 +02:00
resolved-etc-hosts.h test-resolved-etc-hosts: add tests for /etc/hosts parsing 2018-08-01 12:38:39 +02:00
resolved-gperf.gperf resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-link-bus.c basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
resolved-link-bus.h resolved: convert to the new scheme 2020-05-05 22:36:37 +02:00
resolved-link.c basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
resolved-link.h resolved: Break include cycles 2020-05-07 09:00:48 +02:00
resolved-llmnr.c tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call 2019-04-10 22:11:18 +02:00
resolved-llmnr.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolved-manager.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
resolved-manager.h netlink: port to recvmsg_safe() 2020-05-12 10:47:06 +02:00
resolved-mdns.c tree-wide: fix spelling of lookup and setup verbs 2020-03-03 15:02:53 +01:00
resolved-mdns.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
resolved-resolv-conf.c resolve: move resolv.conf path definitions to shared header 2020-04-22 19:38:04 +02:00
resolved-resolv-conf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
resolved.c resolved: convert to the new scheme 2020-05-05 22:36:37 +02:00
resolved.conf.in meson,resolved: make default LLMNR= and MulticastDNS= values configurable 2020-04-15 14:37:21 +02:00
RFCs resolve: add support for RFC 8080 (#7600) 2017-12-12 16:30:12 +01:00
test-dns-packet.c tests: move unit files to units/ subdirectory 2020-03-19 16:23:27 +01:00
test-dnssec-complex.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-dnssec.c Canonicalise names in DNS responses per RFC4034 requirements 2020-02-24 10:56:13 +00:00
test-resolve-tables.c test: add more string-table tests in test-resolve-tables 2018-07-24 01:26:14 +09:00
test-resolved-etc-hosts.c tests: use the test helpers in more places 2019-03-04 14:15:38 +01:00
test-resolved-packet.c tests: use the test helpers in more places 2019-03-04 14:15:38 +01:00