From 99b06a2f5c9794cf7f767bffc6aa6649cc979f17 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 2 Dec 2020 15:00:06 +0900 Subject: sd-ipv4acd,sd-ipv4ll: introduce _get_ifindex() and _get_ifname() They will be used in later commits. This also makes sd_ipv4acd_set_ifindex() check the existence of the interface. --- src/libsystemd-network/test-ipv4ll.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libsystemd-network/test-ipv4ll.c') diff --git a/src/libsystemd-network/test-ipv4ll.c b/src/libsystemd-network/test-ipv4ll.c index b213f41889..49e1d590be 100644 --- a/src/libsystemd-network/test-ipv4ll.c +++ b/src/libsystemd-network/test-ipv4ll.c @@ -126,7 +126,6 @@ static void test_public_api_setters(sd_event *e) { assert_se(sd_ipv4ll_set_ifindex(ll, -1) == -EINVAL); assert_se(sd_ipv4ll_set_ifindex(ll, -99) == -EINVAL); assert_se(sd_ipv4ll_set_ifindex(ll, 1) == 0); - assert_se(sd_ipv4ll_set_ifindex(ll, 99) == 0); assert_se(sd_ipv4ll_ref(ll) == ll); assert_se(sd_ipv4ll_unref(ll) == NULL); -- cgit v1.2.1