summaryrefslogtreecommitdiffstats
path: root/src/resolve (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16979 from keszybz/return-log-debugLennart Poettering2020-09-081-1/+2
|\ | | | | Fix 'return log_error()' and 'return log_warning()' patterns
| * tree-wide: correct cases where return log_{error,warning} is used without valueZbigniew Jędrzejewski-Szmek2020-09-081-1/+2
| | | | | | | | | | | | | | | | In various cases, we would say 'return log_warning()' or 'return log_error()'. Those functions return 0 if no error is passed in. For log_warning or log_error this doesn't make sense, and we generally want to propagate the error. In the few cases where the error should be ignored, I think it's better to split it in two, and call 'return 0' on a separate line.
* | tree-wide: define iterator inside of the macroZbigniew Jędrzejewski-Szmek2020-09-0818-105/+54
|/
* Merge pull request #16951 from ↵Zbigniew Jędrzejewski-Szmek2020-09-057-216/+217
|\ | | | | | | | | yuwata/resolve-follow-ups-for-extra-dns-stub-listener resolve: follow-ups for extra DNS stub listener
| * resolve: use correct fd for UDP stub listnerYu Watanabe2020-09-043-10/+3
| |
| * resolve: do not check sender and destination for packet received by extra ↵Yu Watanabe2020-09-041-13/+36
| | | | | | | | DNS stub listner
| * resolve: use sd_event_source_set_io_fd_own() for stub listnersYu Watanabe2020-09-043-35/+29
| |
| * resolve: introduce dns_stub_listener_extra_free() and set it as a key destructorYu Watanabe2020-09-044-20/+17
| |
| * resolve: adjust error messagesYu Watanabe2020-09-041-22/+6
| |
| * resolve: do not set IPv4 specific options on IPv6 socketYu Watanabe2020-09-041-13/+34
| |
| * resolve: do not set IP_TTL for extra DNS stub listenersYu Watanabe2020-09-041-3/+2
| |
| * resolve: use in_addr_union to store addresses for extra dns stub listenersYu Watanabe2020-09-043-24/+50
| |
| * resolve: fix indentationYu Watanabe2020-09-041-26/+26
| |
| * resolve: stop extra stub listners before freeing information about themYu Watanabe2020-09-041-1/+1
| |
| * resolve: set DNS_STUB_LISTENER_YES if no protocol is specified in ↵Yu Watanabe2020-09-043-84/+51
| | | | | | | | DNSStubListenExtra=
| * resolve: Manager::dns_stub_listener_mode is not relevant to extra stub listenersYu Watanabe2020-09-041-4/+1
| |
| * resolve: make DnsStubListenerMode bitfieldYu Watanabe2020-09-042-5/+5
| |
| * resolve: rename dns_stub_extra_event_source -> event_sourceYu Watanabe2020-09-042-6/+6
| | | | | | | | As the name is too redundant.
* | resolvectl: add 'log-level' to help messageYu Watanabe2020-09-041-0/+1
|/ | | | Follow-up for df9578498f3f566409fcb71229d9fc99e4ab0568.
* resolved: ttl/hopcount sockopt is not a booleanLennart Poettering2020-09-043-6/+6
| | | | | These are integer values, hence specify them as integers, not as booleans.
* Merge pull request #16044 from ssahani/resolved-interfaceZbigniew Jędrzejewski-Szmek2020-09-037-30/+370
|\ | | | | systemd-resolved: allow configurable bind address
| * resolve: allow configurable bind addressSusant Sahani2020-09-037-30/+370
| |
* | resolved: remove superfluous ;;Lennart Poettering2020-08-281-1/+1
| |
* | tree-wide: no need to negate argument to ERROR_IS_XYZ()Lennart Poettering2020-08-281-2/+2
| | | | | | | | These macros call abs() internally, hence let's simplify invocations.
* | resolved: make sure we initialize t->answer_errno before completing the ↵Lennart Poettering2020-08-281-14/+15
|/ | | | | | | | | | transaction We must have the error number around when completing the transaction. Let's hence make sure we always initialize it *first* (we accidentally did it once after). Fixes: #11626
* resolved: add minimal varlink api for resolving hostnames/addressesLennart Poettering2020-08-267-39/+598
| | | | | | This allows us to later port nss-resolve to use Varlink rather than D-Bus for resolution. This has the benefit that nss-resolve based resoluton works even without D-Bus being up. And it's faster too.
* resolved: minor clean-ups for resolved-bus.cLennart Poettering2020-08-261-11/+29
|
* resolved: move query bus tracking to resolved-bus.cLennart Poettering2020-08-263-37/+39
| | | | | | | | It's strictly bus-specific, hence let's move this to resolved-bus.c like the rest of the bus specific logic. This is also in preparation for adding an alternative varlink transport, which needs similar functionality, but varlink instead of bus-specific.
* resolved: rename request → bus_requestLennart Poettering2020-08-263-38/+38
| | | | | | Let's prepare for adding a new varlink interface, and thus rename the "request" field to "bus_request", so that we can later add a varlink_request field too.
* resolved: drop suppress_unroutable_family fieldLennart Poettering2020-08-262-5/+0
| | | | It's unused since 90bdc8be66765df09bbc355783cee7204a5ebb31.
* resolve: lift limits on search domains count or lengthDimitri John Ledkov2020-08-181-10/+0
| | | | | | | | | glibc 2.26 lifted restrictions on search domains count or length to unlimited. This has also been backported to 2.17 in some distributions (RHEL 7 and derivatives). Other softwares may have their own limits for search domains, but we should not restrict what is written out any more. https://sourceware.org/legacy-ml/libc-announce/2017/msg00001.html
* tree-wide: make use of new relative time events in sd-event.hLennart Poettering2020-07-283-18/+14
|
* resolvectl: fix older resolved or networkd support to set DNS serversYu Watanabe2020-07-261-1/+3
| | | | Fixes #16573.
* tree-wide: use siphash24_compress_string() where it is applicableYu Watanabe2020-07-221-2/+1
|
* resolvectl: use bus_message_read_in_addr_auto()Yu Watanabe2020-07-201-50/+30
|
* network, resolve: use bus_message_read_ifindex() or friendsYu Watanabe2020-07-201-19/+8
|
* util: introduce bus_mesage_read_dns_servers()Yu Watanabe2020-07-201-74/+4
|
* resolvectl: show DNS servers with port and SNIYu Watanabe2020-07-201-39/+96
|
* resolvectl: make DNS servers can be specified with port number and SNIYu Watanabe2020-07-201-8/+27
|
* resolve: add DBus properties which support DNS SNI and port numberYu Watanabe2020-07-203-23/+160
|
* resolve: add DBus method to set DNS server with port number and SNIYu Watanabe2020-07-203-32/+88
|
* resolve: read/save port number and SNI from/into link state fileYu Watanabe2020-07-204-19/+48
|
* resolve: compare port and SNI in dns_server_hash_opsYu Watanabe2020-07-201-1/+8
|
* resolve: also compare port and SNI in dns_server_find()Yu Watanabe2020-07-205-6/+13
|
* resolve: support port specifier in DNS= settingYu Watanabe2020-07-208-14/+35
|
* resolve: ignore empty server nameYu Watanabe2020-07-201-1/+1
| | | | Just for safety.
* resolve: propagate error in link_load_user()Yu Watanabe2020-07-201-1/+3
| | | | Most error path in link_load_user() are ENOMEM. Hence, it is critical.
* bus: use bus_log_parse_error to print messagefangxiuning2020-07-111-1/+1
|
* Merge pull request #16385 from JackFangXN/masterLennart Poettering2020-07-081-3/+3
|\ | | | | table add table_log_xx_error()
| * table use table_log_print_error() instead of table_log_show_errorfangxiuning2020-07-081-3/+3
| |