Home
last modified time | relevance | path

Searched refs:lifetime (Results 1 – 25 of 48) sorted by relevance

12

/Zephyr-latest/tests/unit/net_timeout/
Dmain.c50 uint32_t lifetime = 0U; in ZTEST() local
60 lifetime = NTO_MAX_S / 2; in ZTEST()
63 net_timeout_set(&nto, lifetime, now); in ZTEST()
66 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST()
70 lifetime = NTO_MAX_S; in ZTEST()
73 net_timeout_set(&nto, lifetime, now); in ZTEST()
76 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST()
80 lifetime += 1U; in ZTEST()
83 net_timeout_set(&nto, lifetime, now); in ZTEST()
87 (lifetime * MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in ZTEST()
[all …]
/Zephyr-latest/subsys/net/ip/
Droute.h59 struct net_timeout lifetime; member
118 uint32_t lifetime,
149 void net_route_update_lifetime(struct net_route_entry *route, uint32_t lifetime);
201 uint32_t lifetime; member
Dnet_timeout.c11 uint32_t lifetime, in net_timeout_set() argument
21 if (lifetime == 0U) { in net_timeout_set()
27 expire_timeout = (uint64_t)MSEC_PER_SEC * (uint64_t)lifetime; in net_timeout_set()
Droute.c328 uint32_t lifetime, in net_route_add() argument
374 net_route_update_lifetime(route, lifetime); in net_route_add()
445 net_route_update_lifetime(route, lifetime); in net_route_add()
483 &route->lifetime.node); in route_expired()
499 current, next, lifetime.node) { in route_lifetime_timeout()
500 struct net_timeout *timeout = &current->lifetime; in route_lifetime_timeout()
521 void net_route_update_lifetime(struct net_route_entry *route, uint32_t lifetime) in net_route_update_lifetime() argument
525 lifetime); in net_route_update_lifetime()
533 if (lifetime == NET_IPV6_ND_INFINITE_LIFETIME) { in net_route_update_lifetime()
537 &route->lifetime.node); in net_route_update_lifetime()
[all …]
Dipv6_pe.c300 int32_t lifetime; in net_ipv6_pe_start() local
396 lifetime = TEMP_VALID_LIFETIME - in net_ipv6_pe_start()
404 DESYNC_FACTOR(ipv6) = MIN(DESYNC_FACTOR(ipv6) + 2U, lifetime); in net_ipv6_pe_start()
412 lifetime, DESYNC_FACTOR(ipv6), ifaddr->addr_timeout, in net_ipv6_pe_start()
757 int32_t lifetime; in net_ipv6_pe_init() local
762 lifetime = TEMP_VALID_LIFETIME - in net_ipv6_pe_init()
765 if (lifetime <= 0) { in net_ipv6_pe_init()
785 lifetime); in net_ipv6_pe_init()
Dicmpv6.h68 uint16_t lifetime; member
94 uint32_t lifetime; member
Dnet_if.c774 ends += MSEC_PER_SEC * router->lifetime; in iface_router_ends()
844 uint16_t lifetime) in iface_router_add() argument
860 if (lifetime) { in iface_router_add()
863 routers[i].lifetime = lifetime; in iface_router_add()
873 routers[i].lifetime = 0; in iface_router_add()
887 lifetime, routers[i].is_default); in iface_router_add()
901 lifetime, is_default); in iface_router_add()
1696 &ifaddr->lifetime.node); in address_expired()
1698 net_timeout_set(&ifaddr->lifetime, 0, 0); in address_expired()
1722 current, next, lifetime.node) { in address_lifetime_timeout()
[all …]
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/
Dnormalized_crypto.h17 uint32_t lifetime; member
40 void psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime);
Dmain.c104 void custom_psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime) in custom_psa_set_key_lifetime() argument
106 zassert_equal(PSA_KEY_LIFETIME_PERSISTENT, lifetime, "Key lifetime mismatch"); in custom_psa_set_key_lifetime()
/Zephyr-latest/subsys/net/lib/shell/
Dsockets.c34 int lifetime; in walk_sockets() local
57 lifetime = obj->create_time; in walk_sockets()
62 lifetime = k_ticks_to_ms_ceil32(sys_clock_tick_get() - in walk_sockets()
78 fd, lifetime, stats.sent, stats.received); in walk_sockets()
Droute.c58 remaining = net_timeout_remaining(&entry->lifetime, now); in route_cb()
102 PR("Lifetime : %u\n", entry->lifetime); in route_mcast_cb()
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c821 uint32_t lifetime = 1U; in ZTEST() local
824 prefix = net_if_ipv6_prefix_add(TEST_NET_IF, &addr, len, lifetime); in ZTEST()
828 net_if_ipv6_prefix_set_timer(prefix, lifetime); in ZTEST()
830 k_sleep(K_SECONDS(lifetime * 2U)); in ZTEST()
842 uint32_t lifetime = 0xfffffffe; in ZTEST() local
847 ifprefix = net_if_ipv6_prefix_add(TEST_NET_IF, &prefix, len, lifetime); in ZTEST()
850 net_if_ipv6_prefix_set_timer(ifprefix, lifetime); in ZTEST()
852 zassert_equal(ifprefix->lifetime.wrap_counter, 1999, in ZTEST()
854 ifprefix->lifetime.wrap_counter); in ZTEST()
855 remaining = MSEC_PER_SEC * (uint64_t)lifetime - in ZTEST()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/
DKconfig17 int "SMP command lifetime in seconds"
21 This define lifetime for SMP client send request. This configure is used if a request
/Zephyr-latest/doc/hardware/peripherals/eeprom/
Dindex.rst9 EEPROMs have an erase block size of 1 byte, a long lifetime, and allow
/Zephyr-latest/include/zephyr/net/
Dnet_timeout.h99 uint32_t lifetime,
Dnet_event.h423 uint32_t lifetime; member
Dnet_if.h66 struct net_timeout lifetime; member
178 struct net_timeout lifetime; member
217 uint16_t lifetime; member
1719 uint32_t lifetime);
1752 uint32_t lifetime);
1830 uint16_t lifetime);
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rd_client.c119 uint32_t lifetime; member
650 static bool sm_update_lifetime(int srv_obj_inst, uint32_t *lifetime) in sm_update_lifetime() argument
665 if (new_lifetime != *lifetime) { in sm_update_lifetime()
666 *lifetime = new_lifetime; in sm_update_lifetime()
717 client.lifetime = 0U; in sm_do_init()
934 if (sm_update_lifetime(client.ctx->srv_obj_inst, &client.lifetime) || in sm_send_registration()
937 "lt=%d", client.lifetime); in sm_send_registration()
1071 sm_update_lifetime(srv, &client.lifetime); in sm_do_registration()
1091 client.ep_name, client.lifetime, client.ctx->srv_obj_inst); in sm_do_registration()
1120 period = client.lifetime; in next_update()
[all …]
Dlwm2m_obj_server.c48 static uint32_t lifetime[MAX_INSTANCE_COUNT]; variable
354 lifetime[index] = CONFIG_LWM2M_ENGINE_DEFAULT_LIFETIME; in server_create()
371 1U, false, true, &lifetime[index], sizeof(*lifetime), in server_create()
DKconfig495 int "LWM2M engine default server connection lifetime"
499 Set the default lifetime (in seconds) for the LwM2M library engine.
500 This is also a minimum lifetime that client accepts. If server sets lifetime
509 This allows modifying lifetime without affecting the update period.
510 Set to zero, to allow LWM2M_SECONDS_TO_UPDATE_EARLY and lifetime to control when to
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dtest_lwm2m.py36 lifetime = int(lines[0])
37 lifetime = lifetime + 10
39 leshan.write(endpoint, '1/0/1', lifetime)
44 assert latest["lifetime"] == lifetime
71 lifetime = int(lines[0])
72 assert lifetime == 120
74 dut.readlines_until(regex='.*net_lwm2m_rd_client: Update Done', timeout=lifetime)
252 lifetime = int(lines[0])
261 1: lifetime,
269 lifetime = int(lines[0])
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dlwm2m.rst677 Configuring lifetime and activity period
689 * - LwM2M registration lifetime
690 …- The lifetime parameter in LwM2M specifies how long a device's registration with an LwM2M server …
691 Device is expected to send LwM2M Update message before the lifetime exprires.
693 - Default lifetime value, unless set by the bootstrap server.
694 Also defines lower limit that client accepts as a lifetime.
698 - Minimum time margin to send the update message before the registration lifetime expires.
706 many seconds before the expiration of lifetime it is going to send the registration update.
707 The problem with default mode is when the server changes the lifetime of the registration.
718 is the earliest when any of these values expire. This allows setting long lifetime for the
[all …]
/Zephyr-latest/samples/net/dhcpv4_client/
DREADME.rst43 "valid-lifetime": 7200,
135 "valid-lifetime": 7200,
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dhealth_srv.rst16 device's lifetime. Typically, the faults are events or conditions that may
/Zephyr-latest/subsys/net/lib/wifi_credentials/
DKconfig85 with persistent lifetime. The users of the PSA API are responsible (WIFI credentials

12