diff options
Diffstat (limited to 'src/devices/tests/test-arping.c')
| -rw-r--r-- | src/devices/tests/test-arping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/tests/test-arping.c b/src/devices/tests/test-arping.c index 36e17631..72d28a7a 100644 --- a/src/devices/tests/test-arping.c +++ b/src/devices/tests/test-arping.c @@ -41,8 +41,8 @@ fixture_setup (test_fixture *fixture, gconstpointer user_data) { /* create veth pair. */ nmtstp_run_command_check ("ip link add dev %s type veth peer name %s", IFACE_VETH0, IFACE_VETH1); - fixture->ifindex0 = nmtstp_assert_wait_for_link (IFACE_VETH0, NM_LINK_TYPE_VETH, 100)->ifindex; - fixture->ifindex1 = nmtstp_assert_wait_for_link (IFACE_VETH1, NM_LINK_TYPE_VETH, 100)->ifindex; + fixture->ifindex0 = nmtstp_assert_wait_for_link (NM_PLATFORM_GET, IFACE_VETH0, NM_LINK_TYPE_VETH, 100)->ifindex; + fixture->ifindex1 = nmtstp_assert_wait_for_link (NM_PLATFORM_GET, IFACE_VETH1, NM_LINK_TYPE_VETH, 100)->ifindex; g_assert (nm_platform_link_set_up (NM_PLATFORM_GET, fixture->ifindex0, NULL)); g_assert (nm_platform_link_set_up (NM_PLATFORM_GET, fixture->ifindex1, NULL)); @@ -80,7 +80,7 @@ test_arping_common (test_fixture *fixture, TestInfo *info) for (i = 0; info->peer_addresses[i]; i++) { nmtstp_ip4_address_add (FALSE, fixture->ifindex1, info->peer_addresses[i], - 24, 0, 3600, 1800, NULL); + 24, 0, 3600, 1800, 0, NULL); } loop = g_main_loop_new (NULL, FALSE); |