Home
last modified time | relevance | path

Searched refs:carrier_state (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/network/
Dnetworkd-state-file.c110 LinkCarrierState carrier_state = LINK_CARRIER_STATE_OFF; in manager_save() local
133 carrier_state = MAX(carrier_state, link->carrier_state); in manager_save()
226 if (carrier_state >= LINK_CARRIER_STATE_ENSLAVED) in manager_save()
227 carrier_state = LINK_CARRIER_STATE_CARRIER; in manager_save()
236 carrier_state_str = link_carrier_state_to_string(carrier_state); in manager_save()
289 if (m->carrier_state != carrier_state) { in manager_save()
290 m->carrier_state = carrier_state; in manager_save()
466 …const char *admin_state, *oper_state, *carrier_state, *address_state, *ipv4_address_state, *ipv6_a… in link_save() local
488 carrier_state = link_carrier_state_to_string(link->carrier_state); in link_save()
489 assert(carrier_state); in link_save()
[all …]
Dnetworkd-link.c1760 LinkCarrierState carrier_state; in link_update_operstate() local
1771 carrier_state = LINK_CARRIER_STATE_DORMANT; in link_update_operstate()
1774 carrier_state = LINK_CARRIER_STATE_ENSLAVED; in link_update_operstate()
1776 carrier_state = LINK_CARRIER_STATE_CARRIER; in link_update_operstate()
1778 carrier_state = LINK_CARRIER_STATE_NO_CARRIER; in link_update_operstate()
1780 carrier_state = LINK_CARRIER_STATE_OFF; in link_update_operstate()
1782 if (carrier_state >= LINK_CARRIER_STATE_CARRIER) { in link_update_operstate()
1788 if (slave->carrier_state < LINK_CARRIER_STATE_CARRIER) in link_update_operstate()
1789 carrier_state = LINK_CARRIER_STATE_DEGRADED_CARRIER; in link_update_operstate()
1817 if (carrier_state < LINK_CARRIER_STATE_CARRIER || address_state == LINK_ADDRESS_STATE_OFF) in link_update_operstate()
[all …]
Dnetworkd-manager.h44 LinkCarrierState carrier_state; member
Dnetworkd-link.h91 LinkCarrierState carrier_state; member
Dnetworkd-manager-bus.c294 …TY("CarrierState", "s", property_get_carrier_state, offsetof(Manager, carrier_state), SD_BUS_VTABL…
Dnetworkd-link-bus.c716 …PERTY("CarrierState", "s", property_get_carrier_state, offsetof(Link, carrier_state), SD_BUS_VTABL…
Dnetworkd-json.c1200 … JSON_BUILD_PAIR_STRING("CarrierState", link_carrier_state_to_string(link->carrier_state)), in link_build_json()
/systemd-251/src/libsystemd/sd-network/
Dnetwork-util.c24 _cleanup_free_ char *carrier_state = NULL, *addr_state = NULL; in network_is_online() local
26 r = sd_network_get_carrier_state(&carrier_state); in network_is_online()
35 if (STR_IN_SET(carrier_state, "degraded-carrier", "carrier") && in network_is_online()