diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-02 15:00:06 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-02 18:40:24 +0900 |
commit | 99b06a2f5c9794cf7f767bffc6aa6649cc979f17 (patch) | |
tree | b589fb1cd0f78cadbd7c9766b05e01599b131df6 /src/libsystemd-network/test-ipv4ll.c | |
parent | ebef02dd8f35f8b6ee58060b71b7f321a5027760 (diff) | |
download | systemd-99b06a2f5c9794cf7f767bffc6aa6649cc979f17.tar.gz |
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.
Diffstat (limited to 'src/libsystemd-network/test-ipv4ll.c')
-rw-r--r-- | src/libsystemd-network/test-ipv4ll.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |