Suggested by Kay and Lennart.
return network_get_strv("NTP", ret);
}
return network_get_strv("NTP", ret);
}
-_public_ int sd_network_link_get_state(int ifindex, char **state) {
+_public_ int sd_network_link_get_setup_state(int ifindex, char **state) {
_cleanup_free_ char *s = NULL, *p = NULL;
int r;
_cleanup_free_ char *s = NULL, *p = NULL;
int r;
char devid[2 + DECIMAL_STR_MAX(int)];
_cleanup_free_ char *t = NULL;
char devid[2 + DECIMAL_STR_MAX(int)];
_cleanup_free_ char *t = NULL;
- sd_network_link_get_state(links[i].ifindex, &state);
+ sd_network_link_get_setup_state(links[i].ifindex, &state);
sd_network_link_get_operational_state(links[i].ifindex, &operational_state);
sprintf(devid, "n%i", links[i].ifindex);
sd_network_link_get_operational_state(links[i].ifindex, &operational_state);
sprintf(devid, "n%i", links[i].ifindex);
sd_rtnl_message_read_u32(reply, IFLA_MTU, &mtu);
sd_rtnl_message_read_u32(reply, IFLA_MTU, &mtu);
- sd_network_link_get_state(ifindex, &state);
+ sd_network_link_get_setup_state(ifindex, &state);
sd_network_link_get_operational_state(ifindex, &operational_state);
sd_network_link_get_dns(ifindex, &dns);
sd_network_link_get_operational_state(ifindex, &operational_state);
sd_network_link_get_dns(ifindex, &dns);
free(l->state);
l->state = NULL;
free(l->state);
l->state = NULL;
- sd_network_link_get_state(l->ifindex, &l->state);
+ sd_network_link_get_setup_state(l->ifindex, &l->state);
* reperesentations of IP addresses */
int sd_network_get_ntp(char ***addr);
* reperesentations of IP addresses */
int sd_network_get_ntp(char ***addr);
-/* Get state from ifindex.
+/* Get setup state from ifindex.
* Possible states:
* pending: udev is still processing the link, we don't yet know if we will manage it
* failed: networkd failed to manage the link
* Possible states:
* pending: udev is still processing the link, we don't yet know if we will manage it
* failed: networkd failed to manage the link
* Possible return codes:
* -ENODATA: networkd is not aware of the link
*/
* Possible return codes:
* -ENODATA: networkd is not aware of the link
*/
-int sd_network_link_get_state(int ifindex, char **state);
+int sd_network_link_get_setup_state(int ifindex, char **state);
/* Get operatinal state from ifindex.
* Possible states:
/* Get operatinal state from ifindex.
* Possible states: