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/systemd/sd-ipv4ll.h | |
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/systemd/sd-ipv4ll.h')
-rw-r--r-- | src/systemd/sd-ipv4ll.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-ipv4ll.h b/src/systemd/sd-ipv4ll.h index a0682232e3..aa4d174e4b 100644 --- a/src/systemd/sd-ipv4ll.h +++ b/src/systemd/sd-ipv4ll.h @@ -43,6 +43,8 @@ int sd_ipv4ll_get_address(sd_ipv4ll *ll, struct in_addr *address); int sd_ipv4ll_set_callback(sd_ipv4ll *ll, sd_ipv4ll_callback_t cb, void *userdata); int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr); int sd_ipv4ll_set_ifindex(sd_ipv4ll *ll, int interface_index); +int sd_ipv4ll_get_ifindex(sd_ipv4ll *ll); +const char *sd_ipv4ll_get_ifname(sd_ipv4ll *ll); int sd_ipv4ll_set_address(sd_ipv4ll *ll, const struct in_addr *address); int sd_ipv4ll_set_address_seed(sd_ipv4ll *ll, uint64_t seed); int sd_ipv4ll_is_running(sd_ipv4ll *ll); |