projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118592c
)
resolvectl: show DefaultRoute state in per-link DNS staus info too
author
Lennart Poettering
<lennart@poettering.net>
Wed, 11 Sep 2024 14:11:43 +0000
(16:11 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 11 Sep 2024 19:14:28 +0000
(21:14 +0200)
src/resolve/resolvectl.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolvectl.c
b/src/resolve/resolvectl.c
index ec75b9892d71e81a597fe02f5e8881723c3719a3..5c028237363bdb3031f3d56393084677e702fb09 100644
(file)
--- a/
src/resolve/resolvectl.c
+++ b/
src/resolve/resolvectl.c
@@
-1875,6
+1875,12
@@
static int status_ifindex(sd_bus *bus, int ifindex, const char *name, StatusMode
if (r < 0)
return r;
+ r = table_add_many(table,
+ TABLE_FIELD, "Default Route",
+ TABLE_BOOLEAN, link_info.default_route);
+ if (r < 0)
+ return table_log_add_error(r);
+
r = table_print(table, NULL);
if (r < 0)
return table_log_print_error(r);