Searched refs:ia_pd (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/subsys/net/lib/dhcpv6/ |
D | dhcpv6.c | 35 bool ia_pd : 1; member 343 static int dhcpv6_add_option_ia_pd(struct net_pkt *pkt, struct dhcpv6_ia_pd *ia_pd, in dhcpv6_add_option_ia_pd() argument 363 ret = net_pkt_write_be32(pkt, ia_pd->iaid); in dhcpv6_add_option_ia_pd() 368 ret = net_pkt_write_be32(pkt, ia_pd->t1); in dhcpv6_add_option_ia_pd() 373 ret = net_pkt_write_be32(pkt, ia_pd->t2); in dhcpv6_add_option_ia_pd() 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() [all …]
|
/Zephyr-latest/tests/net/dhcpv6/src/ |
D | main.c | 361 struct dhcpv6_ia_pd ia_pd; in verify_dhcpv6_ia_pd() local 364 ret = dhcpv6_find_ia_pd(pkt, &ia_pd); in verify_dhcpv6_ia_pd() 366 zassert_equal(ia_pd.iaid, iface->config.dhcpv6.prefix_iaid, in verify_dhcpv6_ia_pd() 368 zassert_equal(ia_pd.t1, 0, "T1 should be set to 0 by the client"); in verify_dhcpv6_ia_pd() 369 zassert_equal(ia_pd.t2, 0, "T2 should be set to 0 by the client"); in verify_dhcpv6_ia_pd() 372 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() [all …]
|