Home
last modified time | relevance | path

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

/systemd-251/src/network/
Dnetworkd-state-file.c109 LinkOperationalState operstate = LINK_OPERSTATE_OFF; in manager_save() local
132 operstate = MAX(operstate, link->operstate); in manager_save()
233 operstate_str = link_operstate_to_string(operstate); in manager_save()
283 if (m->operational_state != operstate) { in manager_save()
284 m->operational_state = operstate; in manager_save()
485 oper_state = link_operstate_to_string(link->operstate); in link_save()
Dnetworkd-link.c1759 LinkOperationalState operstate; in link_update_operstate() local
1818 operstate = (LinkOperationalState) carrier_state; in link_update_operstate()
1820 operstate = LINK_OPERSTATE_ROUTABLE; in link_update_operstate()
1822 operstate = LINK_OPERSTATE_DEGRADED; in link_update_operstate()
1824 operstate = LINK_OPERSTATE_ENSLAVED; in link_update_operstate()
1829 else if (operstate < link->network->required_operstate_for_online.min || in link_update_operstate()
1830 operstate > link->network->required_operstate_for_online.max) in link_update_operstate()
1885 if (link->operstate != operstate) { in link_update_operstate()
1886 link->operstate = operstate; in link_update_operstate()
1919 uint8_t operstate; in link_update_flags() local
[all …]
Dnetworkd-link.h90 LinkOperationalState operstate; member
Dnetworkd-link-bus.c715 …"OperationalState", "s", property_get_operational_state, offsetof(Link, operstate), SD_BUS_VTABLE_…
Dnetworkd-json.c1199 … JSON_BUILD_PAIR_STRING("OperationalState", link_operstate_to_string(link->operstate)), in link_build_json()
/systemd-251/src/shared/
Dnetif-util.c15 bool netif_has_carrier(uint8_t operstate, unsigned flags) { in netif_has_carrier() argument
18 if (operstate == IF_OPER_UP) in netif_has_carrier()
21 if (operstate != IF_OPER_UNKNOWN) in netif_has_carrier()
Dnetif-util.h12 bool netif_has_carrier(uint8_t operstate, unsigned flags);
/systemd-251/src/resolve/
Dresolved-link.h77 uint8_t operstate; member
Dresolved-link.c43 .operstate = IF_OPER_UNKNOWN, in link_new()
238 (void) sd_netlink_message_read_u8(m, IFLA_OPERSTATE, &l->operstate); in link_process_rtnl()
692 if (!netif_has_carrier(l->operstate, l->flags)) in link_relevant()
/systemd-251/test/test-network/
Dsystemd-networkd-tests.py623 …def wait_operstate(self, link, operstate='degraded', setup_state='configured', setup_timeout=5, fa… argument
637 if not operstate:
638 operstate = r'\S+'
3154 operstate = 'routable' if expect_up else 'off'
3156 self.wait_operstate(interface, operstate, setup_state=setup_state, setup_timeout=20)
3983 …self.wait_operstate('bridge99', operstate=r'(no-carrier|routable)', setup_state=None, setup_timeou…
3994 self.wait_operstate('bridge99', operstate='no-carrier', setup_state=None)