Lines Matching full:iface

24 typedef void (*test_dhcpv6_pkt_fn_t)(struct net_if *iface,
27 typedef int (*test_dhcpv6_options_fn_t)(struct net_if *iface,
33 struct net_if *iface; member
42 static void test_iface_init(struct net_if *iface) in test_iface_init() argument
44 struct test_dhcpv6_context *ctx = net_if_get_device(iface)->data; in test_iface_init()
55 net_if_set_link_addr(iface, ctx->mac, sizeof(ctx->mac), NET_LINK_ETHERNET); in test_iface_init()
85 static void set_test_addr_on_iface(struct net_if *iface) in set_test_addr_on_iface() argument
87 memcpy(&test_ctx.iface->config.dhcpv6.addr, &test_addr, in set_test_addr_on_iface()
88 sizeof(test_ctx.iface->config.dhcpv6.addr)); in set_test_addr_on_iface()
89 memcpy(&test_ctx.iface->config.dhcpv6.prefix, &test_prefix, in set_test_addr_on_iface()
90 sizeof(test_ctx.iface->config.dhcpv6.prefix)); in set_test_addr_on_iface()
91 test_ctx.iface->config.dhcpv6.prefix_len = test_prefix_len; in set_test_addr_on_iface()
94 static void clear_test_addr_on_iface(struct net_if *iface) in clear_test_addr_on_iface() argument
96 memset(&test_ctx.iface->config.dhcpv6.addr, 0, in clear_test_addr_on_iface()
97 sizeof(test_ctx.iface->config.dhcpv6.addr)); in clear_test_addr_on_iface()
98 memset(&test_ctx.iface->config.dhcpv6.prefix, 0, in clear_test_addr_on_iface()
99 sizeof(test_ctx.iface->config.dhcpv6.prefix)); in clear_test_addr_on_iface()
100 test_ctx.iface->config.dhcpv6.prefix_len = 0; in clear_test_addr_on_iface()
119 static void set_fake_server_duid(struct net_if *iface) in set_fake_server_duid() argument
121 memcpy(&iface->config.dhcpv6.serverid, &test_serverid, in set_fake_server_duid()
128 struct net_if *iface, enum dhcpv6_msg_type msg_type, in test_dhcpv6_create_message() argument
135 local_addr = net_if_ipv6_get_ll(iface, NET_ADDR_ANY_STATE); in test_dhcpv6_create_message()
147 pkt = net_pkt_alloc_with_buffer(iface, TEST_MSG_SIZE, AF_INET6, in test_dhcpv6_create_message()
159 dhcpv6_generate_tid(iface); in test_dhcpv6_create_message()
161 if (dhcpv6_add_header(pkt, msg_type, iface->config.dhcpv6.tid) < 0) { in test_dhcpv6_create_message()
165 if (set_options_fn(iface, pkt, msg_type) < 0) { in test_dhcpv6_create_message()
182 struct net_if *iface) in evt_handler() argument
189 net_ipv6_addr_create_iid(&lladdr, net_if_get_link_addr(test_ctx.iface)); in evt_handler()
190 (void)net_if_ipv6_addr_add(test_ctx.iface, &lladdr, NET_ADDR_AUTOCONF, 0); in evt_handler()
198 test_ctx.iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in dhcpv6_tests_setup()
200 net_ipv6_addr_create_iid(&lladdr, net_if_get_link_addr(test_ctx.iface)); in dhcpv6_tests_setup()
201 (void)net_if_ipv6_addr_add(test_ctx.iface, &lladdr, NET_ADDR_AUTOCONF, 0); in dhcpv6_tests_setup()
224 memset(&test_ctx.iface->config.dhcpv6, 0, in dhcpv6_tests_before()
225 sizeof(test_ctx.iface->config.dhcpv6)); in dhcpv6_tests_before()
227 dhcpv6_generate_client_duid(test_ctx.iface); in dhcpv6_tests_before()
228 test_ctx.iface->config.dhcpv6.state = NET_DHCPV6_DISABLED; in dhcpv6_tests_before()
229 test_ctx.iface->config.dhcpv6.addr_iaid = 10; in dhcpv6_tests_before()
230 test_ctx.iface->config.dhcpv6.prefix_iaid = 20; in dhcpv6_tests_before()
231 test_ctx.iface->config.dhcpv6.exchange_start = k_uptime_get(); in dhcpv6_tests_before()
232 test_ctx.iface->config.dhcpv6.params = (struct net_dhcpv6_params){ in dhcpv6_tests_before()
239 net_if_ipv6_addr_rm(test_ctx.iface, &test_addr); in dhcpv6_tests_before()
240 net_if_ipv6_prefix_rm(test_ctx.iface, &test_prefix, test_prefix_len); in dhcpv6_tests_before()
250 net_dhcpv6_stop(test_ctx.iface); in dhcpv6_tests_after()
254 static void verify_dhcpv6_header(struct net_if *iface, struct net_pkt *pkt, in verify_dhcpv6_header() argument
269 zassert_mem_equal(tid, iface->config.dhcpv6.tid, sizeof(tid), in verify_dhcpv6_header()
273 static void verify_dhcpv6_clientid(struct net_if *iface, struct net_pkt *pkt) in verify_dhcpv6_clientid() argument
280 zassert_equal(duid.length, iface->config.dhcpv6.clientid.length, in verify_dhcpv6_clientid()
282 zassert_mem_equal(&duid.duid, &iface->config.dhcpv6.clientid.duid, in verify_dhcpv6_clientid()
286 static void verify_dhcpv6_serverid(struct net_if *iface, struct net_pkt *pkt) in verify_dhcpv6_serverid() argument
293 zassert_equal(duid.length, iface->config.dhcpv6.serverid.length, in verify_dhcpv6_serverid()
295 zassert_mem_equal(&duid.duid, &iface->config.dhcpv6.serverid.duid, in verify_dhcpv6_serverid()
299 static void verify_dhcpv6_no_serverid(struct net_if *iface, struct net_pkt *pkt) in verify_dhcpv6_no_serverid() argument
308 static void verify_dhcpv6_elapsed_time(struct net_if *iface, struct net_pkt *pkt, in verify_dhcpv6_elapsed_time() argument
330 static void verify_dhcpv6_ia_na(struct net_if *iface, struct net_pkt *pkt, in verify_dhcpv6_ia_na() argument
338 zassert_equal(ia_na.iaid, iface->config.dhcpv6.addr_iaid, in verify_dhcpv6_ia_na()
358 static void verify_dhcpv6_ia_pd(struct net_if *iface, struct net_pkt *pkt, in verify_dhcpv6_ia_pd() argument
366 zassert_equal(ia_pd.iaid, iface->config.dhcpv6.prefix_iaid, in verify_dhcpv6_ia_pd()
388 static void verify_dhcpv6_no_reconfigure_accept(struct net_if *iface, in verify_dhcpv6_no_reconfigure_accept() argument
403 static void verify_dhcpv6_oro_sol_max_rt(struct net_if *iface, in verify_dhcpv6_oro_sol_max_rt() argument
434 static void verify_solicit_message(struct net_if *iface, struct net_pkt *pkt) in verify_solicit_message() argument
437 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_SOLICIT); in verify_solicit_message()
440 verify_dhcpv6_clientid(iface, pkt); in verify_solicit_message()
441 verify_dhcpv6_no_serverid(iface, pkt); in verify_solicit_message()
442 verify_dhcpv6_elapsed_time(iface, pkt, 0, 10); in verify_solicit_message()
443 verify_dhcpv6_ia_na(iface, pkt, NULL); in verify_solicit_message()
444 verify_dhcpv6_ia_pd(iface, pkt, NULL, 0); in verify_solicit_message()
445 verify_dhcpv6_no_reconfigure_accept(iface, pkt); in verify_solicit_message()
446 verify_dhcpv6_oro_sol_max_rt(iface, pkt); in verify_solicit_message()
458 ret = dhcpv6_send_solicit(test_ctx.iface); in ZTEST()
465 static void verify_request_message(struct net_if *iface, struct net_pkt *pkt) in verify_request_message() argument
468 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_REQUEST); in verify_request_message()
471 verify_dhcpv6_clientid(iface, pkt); in verify_request_message()
472 verify_dhcpv6_serverid(iface, pkt); in verify_request_message()
473 verify_dhcpv6_elapsed_time(iface, pkt, 0, 10); in verify_request_message()
474 verify_dhcpv6_ia_na(iface, pkt, NULL); in verify_request_message()
475 verify_dhcpv6_ia_pd(iface, pkt, NULL, 0); in verify_request_message()
476 verify_dhcpv6_no_reconfigure_accept(iface, pkt); in verify_request_message()
477 verify_dhcpv6_oro_sol_max_rt(iface, pkt); in verify_request_message()
487 set_fake_server_duid(test_ctx.iface); in ZTEST()
490 ret = dhcpv6_send_request(test_ctx.iface); in ZTEST()
497 static void verify_confirm_message(struct net_if *iface, struct net_pkt *pkt) in verify_confirm_message() argument
500 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_CONFIRM); in verify_confirm_message()
503 verify_dhcpv6_clientid(iface, pkt); in verify_confirm_message()
504 verify_dhcpv6_no_serverid(iface, pkt); in verify_confirm_message()
505 verify_dhcpv6_elapsed_time(iface, pkt, 0, 10); in verify_confirm_message()
506 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in verify_confirm_message()
516 set_test_addr_on_iface(test_ctx.iface); in ZTEST()
519 ret = dhcpv6_send_confirm(test_ctx.iface); in ZTEST()
526 void verify_renew_message(struct net_if *iface, struct net_pkt *pkt) in verify_renew_message() argument
529 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_RENEW); in verify_renew_message()
532 verify_dhcpv6_clientid(iface, pkt); in verify_renew_message()
533 verify_dhcpv6_serverid(iface, pkt); in verify_renew_message()
534 verify_dhcpv6_elapsed_time(iface, pkt, 0, 10); in verify_renew_message()
535 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in verify_renew_message()
536 verify_dhcpv6_ia_pd(iface, pkt, &test_prefix, test_prefix_len); in verify_renew_message()
537 verify_dhcpv6_oro_sol_max_rt(iface, pkt); in verify_renew_message()
547 set_test_addr_on_iface(test_ctx.iface); in ZTEST()
548 set_fake_server_duid(test_ctx.iface); in ZTEST()
551 ret = dhcpv6_send_renew(test_ctx.iface); in ZTEST()
558 static void verify_rebind_message(struct net_if *iface, struct net_pkt *pkt) in verify_rebind_message() argument
561 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_REBIND); in verify_rebind_message()
564 verify_dhcpv6_clientid(iface, pkt); in verify_rebind_message()
565 verify_dhcpv6_no_serverid(iface, pkt); in verify_rebind_message()
566 verify_dhcpv6_elapsed_time(iface, pkt, 0, 10); in verify_rebind_message()
567 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in verify_rebind_message()
568 verify_dhcpv6_ia_pd(iface, pkt, &test_prefix, test_prefix_len); in verify_rebind_message()
569 verify_dhcpv6_oro_sol_max_rt(iface, pkt); in verify_rebind_message()
579 set_test_addr_on_iface(test_ctx.iface); in ZTEST()
582 ret = dhcpv6_send_rebind(test_ctx.iface); in ZTEST()
589 static int set_generic_client_options(struct net_if *iface, struct net_pkt *pkt, in set_generic_client_options() argument
595 ret = dhcpv6_add_option_clientid(pkt, &iface->config.dhcpv6.clientid); in set_generic_client_options()
623 test_ctx.iface->config.dhcpv6.state = NET_DHCPV6_INIT; in ZTEST()
633 pkt = test_dhcpv6_create_message(test_ctx.iface, type, in ZTEST()
644 static int set_advertise_options(struct net_if *iface, struct net_pkt *pkt, in set_advertise_options() argument
648 .iaid = iface->config.dhcpv6.addr_iaid, in set_advertise_options()
656 .iaid = iface->config.dhcpv6.prefix_iaid, in set_advertise_options()
666 ret = dhcpv6_add_option_clientid(pkt, &iface->config.dhcpv6.clientid); in set_advertise_options()
676 if (test_ctx.iface->config.dhcpv6.params.request_addr) { in set_advertise_options()
683 if (test_ctx.iface->config.dhcpv6.params.request_prefix) { in set_advertise_options()
713 test_ctx.iface->config.dhcpv6.state = state; in ZTEST()
715 pkt = test_dhcpv6_create_message(test_ctx.iface, in ZTEST()
727 zassert_equal(test_ctx.iface->config.dhcpv6.server_preference, in ZTEST()
729 zassert_equal(test_ctx.iface->config.dhcpv6.serverid.length, in ZTEST()
731 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.serverid.duid, in ZTEST()
746 static int set_reply_options(struct net_if *iface, struct net_pkt *pkt, in set_reply_options() argument
750 .iaid = iface->config.dhcpv6.addr_iaid, in set_reply_options()
758 .iaid = iface->config.dhcpv6.prefix_iaid, in set_reply_options()
768 ret = dhcpv6_add_option_clientid(pkt, &iface->config.dhcpv6.clientid); in set_reply_options()
778 if (iface->config.dhcpv6.state == NET_DHCPV6_CONFIRMING) { in set_reply_options()
817 test_ctx.iface->config.dhcpv6.state = state; in ZTEST()
819 set_fake_server_duid(test_ctx.iface); in ZTEST()
820 clear_test_addr_on_iface(test_ctx.iface); in ZTEST()
822 pkt = test_dhcpv6_create_message(test_ctx.iface, in ZTEST()
844 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.addr, in ZTEST()
848 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.prefix, in ZTEST()
852 zassert_equal(test_ctx.iface->config.dhcpv6.prefix_len, in ZTEST()
867 static void test_solicit_expect_request_send_reply(struct net_if *iface, in test_solicit_expect_request_send_reply() argument
874 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_REQUEST); in test_solicit_expect_request_send_reply()
877 verify_dhcpv6_clientid(iface, pkt); in test_solicit_expect_request_send_reply()
878 verify_dhcpv6_serverid(iface, pkt); in test_solicit_expect_request_send_reply()
879 verify_dhcpv6_ia_na(iface, pkt, NULL); in test_solicit_expect_request_send_reply()
880 verify_dhcpv6_ia_pd(iface, pkt, NULL, 0); in test_solicit_expect_request_send_reply()
883 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_REQUESTING, in test_solicit_expect_request_send_reply()
887 reply = test_dhcpv6_create_message(test_ctx.iface, in test_solicit_expect_request_send_reply()
896 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_BOUND, in test_solicit_expect_request_send_reply()
898 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.addr, in test_solicit_expect_request_send_reply()
900 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.prefix, in test_solicit_expect_request_send_reply()
902 zassert_equal(test_ctx.iface->config.dhcpv6.prefix_len, in test_solicit_expect_request_send_reply()
908 static void test_solicit_expect_solicit_send_advertise(struct net_if *iface, in test_solicit_expect_solicit_send_advertise() argument
915 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_SOLICIT); in test_solicit_expect_solicit_send_advertise()
918 verify_dhcpv6_clientid(iface, pkt); in test_solicit_expect_solicit_send_advertise()
919 verify_dhcpv6_ia_na(iface, pkt, NULL); in test_solicit_expect_solicit_send_advertise()
920 verify_dhcpv6_ia_pd(iface, pkt, NULL, 0); in test_solicit_expect_solicit_send_advertise()
923 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_SOLICITING, in test_solicit_expect_solicit_send_advertise()
925 zassert_equal(iface->config.dhcpv6.server_preference, -1, in test_solicit_expect_solicit_send_advertise()
932 reply = test_dhcpv6_create_message(test_ctx.iface, in test_solicit_expect_solicit_send_advertise()
941 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_SOLICITING, in test_solicit_expect_solicit_send_advertise()
943 zassert_equal(iface->config.dhcpv6.server_preference, test_preference, in test_solicit_expect_solicit_send_advertise()
945 zassert_equal(test_serverid.length, iface->config.dhcpv6.serverid.length, in test_solicit_expect_solicit_send_advertise()
947 zassert_mem_equal(&test_serverid.duid, &iface->config.dhcpv6.serverid.duid, in test_solicit_expect_solicit_send_advertise()
963 memset(&test_ctx.iface->config.dhcpv6, 0, in ZTEST()
964 sizeof(test_ctx.iface->config.dhcpv6)); in ZTEST()
968 net_dhcpv6_start(test_ctx.iface, &params); in ZTEST()
973 addr = net_if_ipv6_addr_lookup_by_iface(test_ctx.iface, &test_addr); in ZTEST()
974 prefix = net_if_ipv6_prefix_lookup(test_ctx.iface, &test_prefix, in ZTEST()
980 static void expect_request_send_reply(struct net_if *iface, struct net_pkt *pkt) in expect_request_send_reply() argument
985 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_REQUEST); in expect_request_send_reply()
989 reply = test_dhcpv6_create_message(test_ctx.iface, in expect_request_send_reply()
1000 static void expect_solicit_send_advertise(struct net_if *iface, struct net_pkt *pkt) in expect_solicit_send_advertise() argument
1005 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_SOLICIT); in expect_solicit_send_advertise()
1009 reply = test_dhcpv6_create_message(test_ctx.iface, in expect_solicit_send_advertise()
1026 net_dhcpv6_start(test_ctx.iface, params); in test_dhcpv6_start_and_enter_bound()
1030 zassert_equal(test_ctx.iface->config.dhcpv6.state, NET_DHCPV6_BOUND, in test_dhcpv6_start_and_enter_bound()
1034 static void test_confirm_expect_confirm_send_reply(struct net_if *iface, in test_confirm_expect_confirm_send_reply() argument
1041 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_CONFIRM); in test_confirm_expect_confirm_send_reply()
1044 verify_dhcpv6_clientid(iface, pkt); in test_confirm_expect_confirm_send_reply()
1045 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in test_confirm_expect_confirm_send_reply()
1048 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_CONFIRMING, in test_confirm_expect_confirm_send_reply()
1054 reply = test_dhcpv6_create_message(test_ctx.iface, in test_confirm_expect_confirm_send_reply()
1063 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_BOUND, in test_confirm_expect_confirm_send_reply()
1065 zassert_equal(test_serverid.length, iface->config.dhcpv6.serverid.length, in test_confirm_expect_confirm_send_reply()
1067 zassert_mem_equal(&test_serverid.duid, &iface->config.dhcpv6.serverid.duid, in test_confirm_expect_confirm_send_reply()
1086 memset(&test_ctx.iface->config.dhcpv6, 0, in ZTEST()
1087 sizeof(test_ctx.iface->config.dhcpv6)); in ZTEST()
1092 net_if_down(test_ctx.iface); in ZTEST()
1093 net_if_up(test_ctx.iface); in ZTEST()
1098 addr = net_if_ipv6_addr_lookup_by_iface(test_ctx.iface, &test_addr); in ZTEST()
1102 static void test_rebind_expect_rebind_send_reply(struct net_if *iface, in test_rebind_expect_rebind_send_reply() argument
1109 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_REBIND); in test_rebind_expect_rebind_send_reply()
1112 verify_dhcpv6_clientid(iface, pkt); in test_rebind_expect_rebind_send_reply()
1113 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in test_rebind_expect_rebind_send_reply()
1114 verify_dhcpv6_ia_pd(iface, pkt, &test_prefix, test_prefix_len); in test_rebind_expect_rebind_send_reply()
1117 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_REBINDING, in test_rebind_expect_rebind_send_reply()
1123 reply = test_dhcpv6_create_message(test_ctx.iface, in test_rebind_expect_rebind_send_reply()
1132 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_BOUND, in test_rebind_expect_rebind_send_reply()
1134 zassert_equal(test_serverid.length, iface->config.dhcpv6.serverid.length, in test_rebind_expect_rebind_send_reply()
1136 zassert_mem_equal(&test_serverid.duid, &iface->config.dhcpv6.serverid.duid, in test_rebind_expect_rebind_send_reply()
1156 memset(&test_ctx.iface->config.dhcpv6, 0, in ZTEST()
1157 sizeof(test_ctx.iface->config.dhcpv6)); in ZTEST()
1162 net_if_down(test_ctx.iface); in ZTEST()
1163 net_if_up(test_ctx.iface); in ZTEST()
1168 addr = net_if_ipv6_addr_lookup_by_iface(test_ctx.iface, &test_addr); in ZTEST()
1169 prefix = net_if_ipv6_prefix_lookup(test_ctx.iface, &test_prefix, in ZTEST()
1175 static void test_renew_expect_renew_send_reply(struct net_if *iface, in test_renew_expect_renew_send_reply() argument
1182 verify_dhcpv6_header(iface, pkt, DHCPV6_MSG_TYPE_RENEW); in test_renew_expect_renew_send_reply()
1185 verify_dhcpv6_clientid(iface, pkt); in test_renew_expect_renew_send_reply()
1186 verify_dhcpv6_serverid(iface, pkt); in test_renew_expect_renew_send_reply()
1187 verify_dhcpv6_ia_na(iface, pkt, &test_addr); in test_renew_expect_renew_send_reply()
1188 verify_dhcpv6_ia_pd(iface, pkt, &test_prefix, test_prefix_len); in test_renew_expect_renew_send_reply()
1191 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_RENEWING, in test_renew_expect_renew_send_reply()
1197 reply = test_dhcpv6_create_message(test_ctx.iface, in test_renew_expect_renew_send_reply()
1206 zassert_equal(iface->config.dhcpv6.state, NET_DHCPV6_BOUND, in test_renew_expect_renew_send_reply()
1208 zassert_equal(test_serverid.length, iface->config.dhcpv6.serverid.length, in test_renew_expect_renew_send_reply()
1210 zassert_mem_equal(&test_serverid.duid, &iface->config.dhcpv6.serverid.duid, in test_renew_expect_renew_send_reply()
1228 memset(&test_ctx.iface->config.dhcpv6, 0, in ZTEST()
1229 sizeof(test_ctx.iface->config.dhcpv6)); in ZTEST()
1235 test_ctx.iface->config.dhcpv6.t1 = k_uptime_get(); in ZTEST()
1236 test_ctx.iface->config.dhcpv6.timeout = test_ctx.iface->config.dhcpv6.t1; in ZTEST()
1242 addr = net_if_ipv6_addr_lookup_by_iface(test_ctx.iface, &test_addr); in ZTEST()
1243 prefix = net_if_ipv6_prefix_lookup(test_ctx.iface, &test_prefix, in ZTEST()
1261 memset(&test_ctx.iface->config.dhcpv6, 0, in ZTEST()
1262 sizeof(test_ctx.iface->config.dhcpv6)); in ZTEST()
1268 test_ctx.iface->config.dhcpv6.t1 = k_uptime_get(); in ZTEST()
1269 test_ctx.iface->config.dhcpv6.timeout = test_ctx.iface->config.dhcpv6.t1; in ZTEST()
1278 test_ctx.iface->config.dhcpv6.t2 = k_uptime_get(); in ZTEST()
1279 test_ctx.iface->config.dhcpv6.timeout = test_ctx.iface->config.dhcpv6.t2; in ZTEST()
1285 addr = net_if_ipv6_addr_lookup_by_iface(test_ctx.iface, &test_addr); in ZTEST()
1286 prefix = net_if_ipv6_prefix_lookup(test_ctx.iface, &test_prefix, in ZTEST()