Lines Matching refs:ciaddr
457 memcpy(reply_msg->ciaddr, msg->ciaddr, sizeof(reply_msg->ciaddr)); in dhcpv4_encode_header()
461 memset(reply_msg->yiaddr, 0, sizeof(reply_msg->ciaddr)); in dhcpv4_encode_header()
551 struct in_addr ciaddr; /* Client address */ in dhcpv4_send() local
555 memcpy(&ciaddr, msg->ciaddr, sizeof(ciaddr)); in dhcpv4_send()
571 } else if (!net_ipv4_is_addr_unspecified(&ciaddr)) { in dhcpv4_send()
576 dst_addr.sin_addr = ciaddr; in dhcpv4_send()
1107 struct in_addr requested_ip, server_id, ciaddr, giaddr; in dhcpv4_handle_request() local
1110 memcpy(&ciaddr, msg->ciaddr, sizeof(ciaddr)); in dhcpv4_handle_request()
1141 if (!net_ipv4_is_addr_unspecified(&ciaddr)) { in dhcpv4_handle_request()
1187 if (!net_ipv4_is_addr_unspecified(&ciaddr)) { in dhcpv4_handle_request()
1240 if (!net_if_ipv4_addr_mask_cmp(ctx->iface, &ciaddr)) { in dhcpv4_handle_request()
1248 if (net_ipv4_addr_cmp(&slot->addr, &ciaddr)) { in dhcpv4_handle_request()
1262 if (dhcpv4_send_ack(ctx, msg, &ciaddr, lease_time, in dhcpv4_handle_request()
1335 struct in_addr ciaddr, server_id; in dhcpv4_handle_release() local
1355 memcpy(&ciaddr, msg->ciaddr, sizeof(ciaddr)); in dhcpv4_handle_release()
1360 if (net_ipv4_addr_cmp(&slot->addr, &ciaddr) && in dhcpv4_handle_release()
1384 (void)dhcpv4_send_ack(ctx, msg, (struct in_addr *)msg->ciaddr, 0, in dhcpv4_handle_inform()