/Zephyr-latest/tests/unit/net_timeout/ |
D | main.c | 50 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/ |
D | route.h | 59 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
|
D | net_timeout.c | 11 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()
|
D | route.c | 328 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 = ¤t->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 …]
|
D | ipv6_pe.c | 300 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()
|
D | icmpv6.h | 68 uint16_t lifetime; member 94 uint32_t lifetime; member
|
D | net_if.c | 776 ends += MSEC_PER_SEC * router->lifetime; in iface_router_ends() 846 uint16_t lifetime) in iface_router_add() argument 862 if (lifetime) { in iface_router_add() 865 routers[i].lifetime = lifetime; in iface_router_add() 875 routers[i].lifetime = 0; in iface_router_add() 889 lifetime, routers[i].is_default); in iface_router_add() 903 lifetime, is_default); in iface_router_add() 1734 &ifaddr->lifetime.node); in address_expired() 1736 net_timeout_set(&ifaddr->lifetime, 0, 0); in address_expired() 1760 current, next, lifetime.node) { in address_lifetime_timeout() [all …]
|
D | 6lo.c | 29 uint16_t lifetime; member 168 ctx_6co[index].lifetime = context->lifetime; in set_6lo_context() 193 if (!context->lifetime) { in net_6lo_set_context()
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/ |
D | normalized_crypto.h | 17 uint32_t lifetime; member 40 void psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime);
|
D | main.c | 102 void custom_psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime) in custom_psa_set_key_lifetime() argument 104 zassert_equal(PSA_KEY_LIFETIME_PERSISTENT, lifetime, "Key lifetime mismatch"); in custom_psa_set_key_lifetime()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | sockets.c | 34 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()
|
D | route.c | 58 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/ |
D | main.c | 813 uint32_t lifetime = 1U; in ZTEST() local 816 prefix = net_if_ipv6_prefix_add(TEST_NET_IF, &addr, len, lifetime); in ZTEST() 820 net_if_ipv6_prefix_set_timer(prefix, lifetime); in ZTEST() 822 k_sleep(K_SECONDS(lifetime * 2U)); in ZTEST() 834 uint32_t lifetime = 0xfffffffe; in ZTEST() local 839 ifprefix = net_if_ipv6_prefix_add(TEST_NET_IF, &prefix, len, lifetime); in ZTEST() 842 net_if_ipv6_prefix_set_timer(ifprefix, lifetime); in ZTEST() 844 zassert_equal(ifprefix->lifetime.wrap_counter, 1999, in ZTEST() 846 ifprefix->lifetime.wrap_counter); in ZTEST() 847 remaining = MSEC_PER_SEC * (uint64_t)lifetime - in ZTEST() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/ |
D | Kconfig | 17 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/ |
D | index.rst | 9 EEPROMs have an erase block size of 1 byte, a long lifetime, and allow
|
/Zephyr-latest/include/zephyr/net/ |
D | net_timeout.h | 99 uint32_t lifetime,
|
D | net_event.h | 423 uint32_t lifetime; member
|
D | net_if.h | 66 struct net_timeout lifetime; member 194 struct net_timeout lifetime; member 233 uint16_t lifetime; member 1784 uint32_t lifetime); 1817 uint32_t lifetime); 1895 uint16_t lifetime);
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rd_client.c | 119 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() 942 if (sm_update_lifetime(client.ctx->srv_obj_inst, &client.lifetime) || in sm_send_registration() 945 "lt=%d", client.lifetime); in sm_send_registration() 1082 sm_update_lifetime(srv, &client.lifetime); in sm_do_registration() 1102 client.ep_name, client.lifetime, client.ctx->srv_obj_inst); in sm_do_registration() 1131 period = client.lifetime; in next_update() [all …]
|
D | lwm2m_obj_server.c | 48 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()
|
D | Kconfig | 495 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/ |
D | test_lwm2m.py | 36 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/ |
D | lwm2m.rst | 677 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/ |
D | README.rst | 43 "valid-lifetime": 7200, 135 "valid-lifetime": 7200,
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | health_srv.rst | 16 device's lifetime. Typically, the faults are events or conditions that may
|