Home
last modified time | relevance | path

Searched refs:ia_na (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/lib/dhcpv6/
Ddhcpv6.c31 bool ia_na : 1; member
282 static int dhcpv6_add_option_ia_na(struct net_pkt *pkt, struct dhcpv6_ia_na *ia_na, in dhcpv6_add_option_ia_na() argument
301 ret = net_pkt_write_be32(pkt, ia_na->iaid); in dhcpv6_add_option_ia_na()
306 ret = net_pkt_write_be32(pkt, ia_na->t1); in dhcpv6_add_option_ia_na()
311 ret = net_pkt_write_be32(pkt, ia_na->t2); in dhcpv6_add_option_ia_na()
326 ret = net_pkt_write(pkt, &ia_na->iaaddr.addr, sizeof(ia_na->iaaddr.addr)); in dhcpv6_add_option_ia_na()
331 ret = net_pkt_write_be32(pkt, ia_na->iaaddr.preferred_lifetime); in dhcpv6_add_option_ia_na()
336 ret = net_pkt_write_be32(pkt, ia_na->iaaddr.valid_lifetime); in dhcpv6_add_option_ia_na()
448 if (options->ia_na) { in dhcpv6_calculate_message_size()
514 if (options->ia_na) { in dhcpv6_add_options()
[all …]
/Zephyr-Core-3.7.0/tests/net/dhcpv6/src/
Dmain.c333 struct dhcpv6_ia_na ia_na; in verify_dhcpv6_ia_na() local
336 ret = dhcpv6_find_ia_na(pkt, &ia_na); in verify_dhcpv6_ia_na()
338 zassert_equal(ia_na.iaid, iface->config.dhcpv6.addr_iaid, in verify_dhcpv6_ia_na()
340 zassert_equal(ia_na.t1, 0, "T1 should be set to 0 by the client"); in verify_dhcpv6_ia_na()
341 zassert_equal(ia_na.t2, 0, "T2 should be set to 0 by the client"); in verify_dhcpv6_ia_na()
344 zassert_equal(ia_na.iaaddr.status, DHCPV6_STATUS_NO_ADDR_AVAIL, in verify_dhcpv6_ia_na()
349 zassert_equal(ia_na.iaaddr.status, DHCPV6_STATUS_SUCCESS, "Invalid status"); in verify_dhcpv6_ia_na()
350 zassert_equal(ia_na.iaaddr.preferred_lifetime, 0, in verify_dhcpv6_ia_na()
352 zassert_equal(ia_na.iaaddr.valid_lifetime, 0, in verify_dhcpv6_ia_na()
354 zassert_mem_equal(&ia_na.iaaddr.addr, addr, sizeof(ia_na.iaaddr.addr), in verify_dhcpv6_ia_na()