Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #16979 from keszybz/return-log-debug | Lennart Poettering | 2020-09-08 | 1 | -1/+2 |
|\ | | | | | Fix 'return log_error()' and 'return log_warning()' patterns | ||||
| * | tree-wide: correct cases where return log_{error,warning} is used without value | Zbigniew Jędrzejewski-Szmek | 2020-09-08 | 1 | -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 macro | Zbigniew Jędrzejewski-Szmek | 2020-09-08 | 18 | -105/+54 |
|/ | |||||
* | Merge pull request #16951 from ↵ | Zbigniew Jędrzejewski-Szmek | 2020-09-05 | 7 | -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 listner | Yu Watanabe | 2020-09-04 | 3 | -10/+3 |
| | | |||||
| * | resolve: do not check sender and destination for packet received by extra ↵ | Yu Watanabe | 2020-09-04 | 1 | -13/+36 |
| | | | | | | | | DNS stub listner | ||||
| * | resolve: use sd_event_source_set_io_fd_own() for stub listners | Yu Watanabe | 2020-09-04 | 3 | -35/+29 |
| | | |||||
| * | resolve: introduce dns_stub_listener_extra_free() and set it as a key destructor | Yu Watanabe | 2020-09-04 | 4 | -20/+17 |
| | | |||||
| * | resolve: adjust error messages | Yu Watanabe | 2020-09-04 | 1 | -22/+6 |
| | | |||||
| * | resolve: do not set IPv4 specific options on IPv6 socket | Yu Watanabe | 2020-09-04 | 1 | -13/+34 |
| | | |||||
| * | resolve: do not set IP_TTL for extra DNS stub listeners | Yu Watanabe | 2020-09-04 | 1 | -3/+2 |
| | | |||||
| * | resolve: use in_addr_union to store addresses for extra dns stub listeners | Yu Watanabe | 2020-09-04 | 3 | -24/+50 |
| | | |||||
| * | resolve: fix indentation | Yu Watanabe | 2020-09-04 | 1 | -26/+26 |
| | | |||||
| * | resolve: stop extra stub listners before freeing information about them | Yu Watanabe | 2020-09-04 | 1 | -1/+1 |
| | | |||||
| * | resolve: set DNS_STUB_LISTENER_YES if no protocol is specified in ↵ | Yu Watanabe | 2020-09-04 | 3 | -84/+51 |
| | | | | | | | | DNSStubListenExtra= | ||||
| * | resolve: Manager::dns_stub_listener_mode is not relevant to extra stub listeners | Yu Watanabe | 2020-09-04 | 1 | -4/+1 |
| | | |||||
| * | resolve: make DnsStubListenerMode bitfield | Yu Watanabe | 2020-09-04 | 2 | -5/+5 |
| | | |||||
| * | resolve: rename dns_stub_extra_event_source -> event_source | Yu Watanabe | 2020-09-04 | 2 | -6/+6 |
| | | | | | | | | As the name is too redundant. | ||||
* | | resolvectl: add 'log-level' to help message | Yu Watanabe | 2020-09-04 | 1 | -0/+1 |
|/ | | | | Follow-up for df9578498f3f566409fcb71229d9fc99e4ab0568. | ||||
* | resolved: ttl/hopcount sockopt is not a boolean | Lennart Poettering | 2020-09-04 | 3 | -6/+6 |
| | | | | | These are integer values, hence specify them as integers, not as booleans. | ||||
* | Merge pull request #16044 from ssahani/resolved-interface | Zbigniew Jędrzejewski-Szmek | 2020-09-03 | 7 | -30/+370 |
|\ | | | | | systemd-resolved: allow configurable bind address | ||||
| * | resolve: allow configurable bind address | Susant Sahani | 2020-09-03 | 7 | -30/+370 |
| | | |||||
* | | resolved: remove superfluous ;; | Lennart Poettering | 2020-08-28 | 1 | -1/+1 |
| | | |||||
* | | tree-wide: no need to negate argument to ERROR_IS_XYZ() | Lennart Poettering | 2020-08-28 | 1 | -2/+2 |
| | | | | | | | | These macros call abs() internally, hence let's simplify invocations. | ||||
* | | resolved: make sure we initialize t->answer_errno before completing the ↵ | Lennart Poettering | 2020-08-28 | 1 | -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/addresses | Lennart Poettering | 2020-08-26 | 7 | -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.c | Lennart Poettering | 2020-08-26 | 1 | -11/+29 |
| | |||||
* | resolved: move query bus tracking to resolved-bus.c | Lennart Poettering | 2020-08-26 | 3 | -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_request | Lennart Poettering | 2020-08-26 | 3 | -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 field | Lennart Poettering | 2020-08-26 | 2 | -5/+0 |
| | | | | It's unused since 90bdc8be66765df09bbc355783cee7204a5ebb31. | ||||
* | resolve: lift limits on search domains count or length | Dimitri John Ledkov | 2020-08-18 | 1 | -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.h | Lennart Poettering | 2020-07-28 | 3 | -18/+14 |
| | |||||
* | resolvectl: fix older resolved or networkd support to set DNS servers | Yu Watanabe | 2020-07-26 | 1 | -1/+3 |
| | | | | Fixes #16573. | ||||
* | tree-wide: use siphash24_compress_string() where it is applicable | Yu Watanabe | 2020-07-22 | 1 | -2/+1 |
| | |||||
* | resolvectl: use bus_message_read_in_addr_auto() | Yu Watanabe | 2020-07-20 | 1 | -50/+30 |
| | |||||
* | network, resolve: use bus_message_read_ifindex() or friends | Yu Watanabe | 2020-07-20 | 1 | -19/+8 |
| | |||||
* | util: introduce bus_mesage_read_dns_servers() | Yu Watanabe | 2020-07-20 | 1 | -74/+4 |
| | |||||
* | resolvectl: show DNS servers with port and SNI | Yu Watanabe | 2020-07-20 | 1 | -39/+96 |
| | |||||
* | resolvectl: make DNS servers can be specified with port number and SNI | Yu Watanabe | 2020-07-20 | 1 | -8/+27 |
| | |||||
* | resolve: add DBus properties which support DNS SNI and port number | Yu Watanabe | 2020-07-20 | 3 | -23/+160 |
| | |||||
* | resolve: add DBus method to set DNS server with port number and SNI | Yu Watanabe | 2020-07-20 | 3 | -32/+88 |
| | |||||
* | resolve: read/save port number and SNI from/into link state file | Yu Watanabe | 2020-07-20 | 4 | -19/+48 |
| | |||||
* | resolve: compare port and SNI in dns_server_hash_ops | Yu Watanabe | 2020-07-20 | 1 | -1/+8 |
| | |||||
* | resolve: also compare port and SNI in dns_server_find() | Yu Watanabe | 2020-07-20 | 5 | -6/+13 |
| | |||||
* | resolve: support port specifier in DNS= setting | Yu Watanabe | 2020-07-20 | 8 | -14/+35 |
| | |||||
* | resolve: ignore empty server name | Yu Watanabe | 2020-07-20 | 1 | -1/+1 |
| | | | | Just for safety. | ||||
* | resolve: propagate error in link_load_user() | Yu Watanabe | 2020-07-20 | 1 | -1/+3 |
| | | | | Most error path in link_load_user() are ENOMEM. Hence, it is critical. | ||||
* | bus: use bus_log_parse_error to print message | fangxiuning | 2020-07-11 | 1 | -1/+1 |
| | |||||
* | Merge pull request #16385 from JackFangXN/master | Lennart Poettering | 2020-07-08 | 1 | -3/+3 |
|\ | | | | | table add table_log_xx_error() | ||||
| * | table use table_log_print_error() instead of table_log_show_error | fangxiuning | 2020-07-08 | 1 | -3/+3 |
| | |