Lines Matching refs:iaaddr

34 	bool iaaddr : 1;  member
328 ret = net_pkt_write(pkt, &ia_na->iaaddr.addr, sizeof(ia_na->iaaddr.addr)); in dhcpv6_add_option_ia_na()
333 ret = net_pkt_write_be32(pkt, ia_na->iaaddr.preferred_lifetime); in dhcpv6_add_option_ia_na()
338 ret = net_pkt_write_be32(pkt, ia_na->iaaddr.valid_lifetime); in dhcpv6_add_option_ia_na()
455 if (options->iaaddr) { in dhcpv6_calculate_message_size()
521 if (options->iaaddr) { in dhcpv6_add_options()
522 memcpy(&ia_na.iaaddr.addr, &iface->config.dhcpv6.addr, in dhcpv6_add_options()
523 sizeof(ia_na.iaaddr.addr)); in dhcpv6_add_options()
526 ret = dhcpv6_add_option_ia_na(pkt, &ia_na, options->iaaddr); in dhcpv6_add_options()
679 .iaaddr = iface->config.dhcpv6.params.request_addr, in dhcpv6_send_renew()
706 .iaaddr = iface->config.dhcpv6.params.request_addr, in dhcpv6_send_rebind()
733 .iaaddr = true, in dhcpv6_send_confirm()
836 struct dhcpv6_iaaddr *iaaddr) in dhcpv6_parse_option_iaaddr() argument
845 ret = net_pkt_read(pkt, &iaaddr->addr, sizeof(iaaddr->addr)); in dhcpv6_parse_option_iaaddr()
850 ret = net_pkt_read_be32(pkt, &iaaddr->preferred_lifetime); in dhcpv6_parse_option_iaaddr()
855 ret = net_pkt_read_be32(pkt, &iaaddr->valid_lifetime); in dhcpv6_parse_option_iaaddr()
863 if (iaaddr->preferred_lifetime > iaaddr->valid_lifetime) { in dhcpv6_parse_option_iaaddr()
868 net_sprint_ipv6_addr(&iaaddr->addr), iaaddr->preferred_lifetime, in dhcpv6_parse_option_iaaddr()
869 iaaddr->valid_lifetime); in dhcpv6_parse_option_iaaddr()
871 iaaddr->status = DHCPV6_STATUS_SUCCESS; in dhcpv6_parse_option_iaaddr()
890 &iaaddr->status); in dhcpv6_parse_option_iaaddr()
953 ia_na->iaaddr.status = DHCPV6_STATUS_NO_ADDR_AVAIL; in dhcpv6_parse_option_ia_na()
973 &ia_na->iaaddr); in dhcpv6_parse_option_ia_na()
1523 ia_na.iaaddr.status != DHCPV6_STATUS_SUCCESS) { in dhcpv6_handle_advertise()
1683 ia_na.iaaddr.status == DHCPV6_STATUS_NO_ADDR_AVAIL || in dhcpv6_handle_reply()
1684 ia_na.iaaddr.valid_lifetime == 0) { in dhcpv6_handle_reply()
1697 &ia_na.iaaddr.addr)) { in dhcpv6_handle_reply()
1702 memcpy(&iface->config.dhcpv6.addr, &ia_na.iaaddr.addr, in dhcpv6_handle_reply()
1706 ia_na.iaaddr.preferred_lifetime, in dhcpv6_handle_reply()
1707 ia_na.iaaddr.valid_lifetime); in dhcpv6_handle_reply()
1709 ifaddr = net_if_ipv6_addr_lookup_by_iface(iface, &ia_na.iaaddr.addr); in dhcpv6_handle_reply()
1712 ifaddr, ia_na.iaaddr.valid_lifetime); in dhcpv6_handle_reply()
1713 } else if (net_if_ipv6_addr_add(iface, &ia_na.iaaddr.addr, NET_ADDR_DHCP, in dhcpv6_handle_reply()
1714 ia_na.iaaddr.valid_lifetime) == NULL) { in dhcpv6_handle_reply()