Home
last modified time | relevance | path

Searched refs:iaprefix (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c36 bool iaprefix : 1; member
388 ret = net_pkt_write_be32(pkt, ia_pd->iaprefix.preferred_lifetime); in dhcpv6_add_option_ia_pd()
393 ret = net_pkt_write_be32(pkt, ia_pd->iaprefix.valid_lifetime); in dhcpv6_add_option_ia_pd()
398 ret = net_pkt_write_u8(pkt, ia_pd->iaprefix.prefix_len); in dhcpv6_add_option_ia_pd()
403 ret = net_pkt_write(pkt, &ia_pd->iaprefix.prefix, in dhcpv6_add_option_ia_pd()
404 sizeof(ia_pd->iaprefix.prefix)); in dhcpv6_add_option_ia_pd()
465 if (options->iaprefix) { in dhcpv6_calculate_message_size()
537 if (options->iaprefix) { in dhcpv6_add_options()
538 memcpy(&ia_pd.iaprefix.prefix, &iface->config.dhcpv6.prefix, in dhcpv6_add_options()
539 sizeof(ia_pd.iaprefix.prefix)); in dhcpv6_add_options()
[all …]
Ddhcpv6_internal.h120 struct dhcpv6_iaprefix iaprefix; member
/Zephyr-latest/tests/net/dhcpv6/src/
Dmain.c372 zassert_equal(ia_pd.iaprefix.status, DHCPV6_STATUS_NO_PREFIX_AVAIL, in verify_dhcpv6_ia_pd()
377 zassert_equal(ia_pd.iaprefix.status, DHCPV6_STATUS_SUCCESS, "Invalid status"); in verify_dhcpv6_ia_pd()
378 zassert_equal(ia_pd.iaprefix.preferred_lifetime, 0, in verify_dhcpv6_ia_pd()
380 zassert_equal(ia_pd.iaprefix.valid_lifetime, 0, in verify_dhcpv6_ia_pd()
382 zassert_equal(ia_pd.iaprefix.prefix_len, prefix_len, in verify_dhcpv6_ia_pd()
384 zassert_mem_equal(&ia_pd.iaprefix.prefix, prefix, in verify_dhcpv6_ia_pd()
385 sizeof(ia_pd.iaprefix.prefix), "Incorrect prefix"); in verify_dhcpv6_ia_pd()
659 .iaprefix.prefix = test_prefix, in set_advertise_options()
660 .iaprefix.prefix_len = test_prefix_len, in set_advertise_options()
661 .iaprefix.preferred_lifetime = 120, in set_advertise_options()
[all …]