summaryrefslogtreecommitdiff
path: root/src/resolve/resolvectl.h
Commit message (Collapse)AuthorAgeFilesLines
* resolvectl: Only strip ifname suffixes when being resolvconfMike Crowe2021-07-121-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. (cherry picked from commit 7875170f01991a1d28cfe284cc7075630cd69055)
* 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`.