summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-28 16:14:22 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-29 06:23:49 +0100
commit1929ed0e5897222422fc6e5c1d7b17ec9c1e36af (patch)
tree28be8e8e372103ffe659406e399894cc586dcf01 /src/network/networkctl.c
parentlibsystemd-network: move config_parse_hwaddr() and config_parse_hwaddrs() (diff)
downloadsystemd-1929ed0e5897222422fc6e5c1d7b17ec9c1e36af.tar.xz
systemd-1929ed0e5897222422fc6e5c1d7b17ec9c1e36af.zip
sd-network: move link_get_type_string()
Diffstat (limited to '')
-rw-r--r--src/network/networkctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 86e53e6da4..476bb0e58d 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -44,6 +44,7 @@
#include "main-func.h"
#include "netlink-util.h"
#include "network-internal.h"
+#include "network-util.h"
#include "pager.h"
#include "parse-util.h"
#include "pretty-print.h"
@@ -703,7 +704,7 @@ static int list_links(int argc, char *argv[], void *userdata) {
setup_state = strdup("unmanaged");
setup_state_to_color(setup_state, &on_color_setup, &off_color_setup);
- t = link_get_type_string(links[i].iftype, links[i].sd_device);
+ t = link_get_type_string(links[i].sd_device, links[i].iftype);
r = table_add_many(table,
TABLE_INT, links[i].ifindex,
@@ -1427,7 +1428,7 @@ static int link_status_one(
(void) sd_device_get_property_value(info->sd_device, "ID_MODEL", &model);
}
- t = link_get_type_string(info->iftype, info->sd_device);
+ t = link_get_type_string(info->sd_device, info->iftype);
(void) sd_network_link_get_network_file(info->ifindex, &network);