summaryrefslogtreecommitdiff
path: root/src/network/test-network.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-02-27 21:56:36 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-02 08:52:18 +0100
commitef62949a23a2d6dc722659cc527f6e0006135dc9 (patch)
tree1419f37b0e27d5e52ca29882135f46522f7eeb41 /src/network/test-network.c
parented87ce1d5d93e10fb712e3839606248a7d20a1ce (diff)
downloadsystemd-ef62949a23a2d6dc722659cc527f6e0006135dc9.tar.gz
network: make Type=ether match based on iftype
This makes Type= can match the type shown in networkctl. Closes #14952.
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r--src/network/test-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c
index b29523b318..e23bec7680 100644
--- a/src/network/test-network.c
+++ b/src/network/test-network.c
@@ -126,7 +126,7 @@ static void test_network_get(Manager *manager, sd_device *loopback) {
/* Let's hope that the test machine does not have a .network file that applies to loopback device…
* But it is still possible, so let's allow that case too. */
- r = network_get(manager, loopback, "lo", NULL, &mac, &mac, 0, NULL, NULL, &network);
+ r = network_get(manager, 0, loopback, "lo", NULL, &mac, &mac, 0, NULL, NULL, &network);
if (r == -ENOENT)
/* The expected case */
assert_se(!network);