summaryrefslogtreecommitdiff
path: root/src/resolve/resolvectl.h
Commit message (Collapse)AuthorAgeFilesLines
* resolvconf-compat: first parse provided interface name as isYu Watanabe2022-10-241-2/+7
| | | | | | | | | | | | | | | | Then, try to drop multiple protocol specifiers at the end. Strictly speaking, this breaks backward compatibility: if eth0 and eth0.42 exists, then previously, echo 'nameserver 192.168.0.1' | resolvconf -a eth0.42 adds the DNS server to eth0 instead of eth0.42, as we unconditionally dropped the specifier after the last dot, and echo 'nameserver 192.168.0.1' | resolvconf -a eth0.42.dhcp adds the DNS server to eth0.42. However, with this commit, now the both commands add the DNS server to eth0.42. But, hopefully, this should be preferable behavior. Fixes #25032.
* resolvectl: Only strip ifname suffixes when being resolvconfMike Crowe2021-06-251-0/+1
| | | | | | | | | Only treat interface names containing dots specially when resolvectl is pretending to be resolvconf to fix https://github.com/systemd/systemd/issues/20014 . Move the special suffix-stripping behaviour of ifname_mangle out to the new ifname_resolvconf_mangle to be called from resolvconf only.
* tree-wide: use -EINVAL for enum invalid valuesZbigniew Jędrzejewski-Szmek2021-02-101-1/+1
| | | | | | | | | As suggested in https://github.com/systemd/systemd/pull/11484#issuecomment-775288617. This does not touch anything exposed in src/systemd. Changing the defines there would be a compatibility break. Note that tests are broken after this commit. They will be fixed in the next one.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* resolvectl: remove allow_loopback parameter from ifname_mangle()Lennart Poettering2018-12-051-1/+1
| | | | | | | All our bus calls validate whether the specified device is a loopback device anyway on the server side. Let's hence simplify the client, there's no value in optimizing error paths after all. But there is value in simpler code.
* resolve: reduce number of conversions between ifname and ifindexYu Watanabe2018-06-261-5/+3
| | | | | This also fixes minor memleak introduced in 654457e560c5723b90b419f7651b87040aade07e.
* tree-wide: add multiple inclusion guardYu Watanabe2018-06-251-0/+1
|
* resolvectl: change syntax to use verb_dispatch()Yu Watanabe2018-04-191-2/+2
| | | | | | | This makes `resolvectl` use the verb style command line, e.g., `resolvectl status` or `resolvectl tlsa tcp fedoraproject.org:443`. For compatibility, if the invocation name is `systemd-resolve`, then it accepts the old syntax, e.g. `systemd-resolve --status`.
* resolvectl: rename systemd-resolve to resolvectlYu Watanabe2018-04-191-0/+30
For the compatibility, `systemd-resolve` will be created as a symbolic link to `resolvectl`.