Lines Matching refs:lifetime

821 	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()
856 NET_TIMEOUT_MAX_VALUE * (uint64_t)ifprefix->lifetime.wrap_counter; in ZTEST()
858 zassert_equal(remaining, ifprefix->lifetime.timer_timeout, in ZTEST()
860 ifprefix->lifetime.timer_timeout); in ZTEST()
1354 zassert_equal(ifaddr->lifetime.timer_timeout, timeout, in ZTEST()
1356 ifaddr->lifetime.timer_timeout, timeout); in ZTEST()
1357 zassert_equal(ifaddr->lifetime.wrap_counter, 0, in ZTEST()
1358 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
1365 zassert_equal(ifaddr->lifetime.wrap_counter, 2, in ZTEST()
1366 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
1368 NET_TIMEOUT_MAX_VALUE * (uint64_t)ifaddr->lifetime.wrap_counter; in ZTEST()
1370 zassert_equal(remaining, ifaddr->lifetime.timer_timeout, in ZTEST()
1372 ifaddr->lifetime.timer_timeout); in ZTEST()
1377 zassert_equal(ifaddr->lifetime.wrap_counter, 2, in ZTEST()
1378 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
1380 ifaddr->lifetime.timer_timeout = 10; in ZTEST()
1381 ifaddr->lifetime.timer_start = k_uptime_get_32() - 10; in ZTEST()
1382 ifaddr->lifetime.wrap_counter = 0; in ZTEST()
1387 zassert_equal(ifaddr->lifetime.timer_timeout, 0, in ZTEST()
1389 ifaddr->lifetime.timer_timeout, 0); in ZTEST()
1390 zassert_equal(ifaddr->lifetime.wrap_counter, 0, in ZTEST()
1391 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()