Home
last modified time | relevance | path

Searched refs:online_state (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/network/ !
Dnetworkd-state-file.c113 LinkOnlineState online_state; in manager_save() local
142 if (link->online_state == LINK_ONLINE_STATE_OFFLINE) in manager_save()
144 else if (link->online_state == LINK_ONLINE_STATE_ONLINE) in manager_save()
229 online_state = links_online > 0 ? in manager_save()
263 online_state_str = link_online_state_to_string(online_state); in manager_save()
313 if (m->online_state != online_state) { in manager_save()
314 m->online_state = online_state; in manager_save()
517 const char *online_state; in link_save() local
520 online_state = link_online_state_to_string(link->online_state); in link_save()
521 if (online_state) in link_save()
[all …]
Dnetworkd-link.c1762 LinkOnlineState online_state; in link_update_operstate() local
1828 online_state = _LINK_ONLINE_STATE_INVALID; in link_update_operstate()
1831 online_state = LINK_ONLINE_STATE_OFFLINE; in link_update_operstate()
1840 online_state = LINK_ONLINE_STATE_ONLINE; in link_update_operstate()
1844 online_state = LINK_ONLINE_STATE_OFFLINE; in link_update_operstate()
1846 online_state = LINK_ONLINE_STATE_OFFLINE; in link_update_operstate()
1851 online_state = LINK_ONLINE_STATE_OFFLINE; in link_update_operstate()
1853 online_state = LINK_ONLINE_STATE_OFFLINE; in link_update_operstate()
1892 if (link->online_state != online_state) { in link_update_operstate()
1893 link->online_state = online_state; in link_update_operstate()
[all …]
Dnetworkd-manager.h48 LinkOnlineState online_state; member
Dnetworkd-link.h95 LinkOnlineState online_state; member
Dnetworkctl.c1553 … *setup_state = NULL, *operational_state = NULL, *online_state = NULL, *activation_policy = NULL; in link_status_one() local
1568 (void) sd_network_link_get_online_state(info->ifindex, &online_state); in link_status_one()
1569 online_state_to_color(online_state, &on_color_online, NULL); in link_status_one()
1661 TABLE_STRING, online_state ?: "unknown", in link_status_one()
2304 _cleanup_free_ char *operational_state = NULL, *online_state = NULL; in system_status() local
2316 (void) sd_network_get_online_state(&online_state); in system_status()
2317 online_state_to_color(online_state, &on_color_online, NULL); in system_status()
2343 TABLE_STRING, online_state ?: "unknown", in system_status()
Dnetworkd-manager-bus.c298 …ERTY("OnlineState", "s", property_get_online_state, offsetof(Manager, online_state), SD_BUS_VTABLE…
Dnetworkd-link-bus.c720 …SD_BUS_PROPERTY("OnlineState", "s", property_get_online_state, offsetof(Link, online_state), SD_BU…
Dnetworkd-manager.c522 .online_state = _LINK_ONLINE_STATE_INVALID, in manager_new()
Dnetworkd-json.c1204 … JSON_BUILD_PAIR_STRING("OnlineState", link_online_state_to_string(link->online_state)))); in link_build_json()
/systemd-251/src/libsystemd/sd-network/ !
Dnetwork-util.c11 _cleanup_free_ char *online_state = NULL; in network_is_online() local
15 r = sd_network_get_online_state(&online_state); in network_is_online()
19 state = link_online_state_from_string(online_state); in network_is_online()