Home
last modified time | relevance | path

Searched refs:ciaddr (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c457 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()
[all …]
Ddhcpv4.c235 const struct in_addr *ciaddr, in dhcpv4_create_message() argument
312 if (ciaddr) { in dhcpv4_create_message()
317 memcpy(msg->ciaddr, ciaddr, 4); in dhcpv4_create_message()
540 const struct in_addr *ciaddr = NULL; in dhcpv4_send_request() local
570 ciaddr = &iface->config.dhcpv4.requested_ip; in dhcpv4_send_request()
573 src_addr = ciaddr; in dhcpv4_send_request()
584 ciaddr = &iface->config.dhcpv4.requested_ip; in dhcpv4_send_request()
585 src_addr = ciaddr; in dhcpv4_send_request()
592 ciaddr, src_addr, server_addr, in dhcpv4_send_request()
607 ciaddr ? in dhcpv4_send_request()
[all …]
Ddhcpv4_internal.h30 uint8_t ciaddr[4]; /* Client IP Address */ member
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c148 const struct in_addr *requested_ip, const struct in_addr *ciaddr) in client_prepare_test_msg() argument
174 if (ciaddr) { in client_prepare_test_msg()
175 memcpy(msg.ciaddr, ciaddr, sizeof(*ciaddr)); in client_prepare_test_msg()
177 memset(msg.ciaddr, 0, sizeof(msg.ciaddr)); in client_prepare_test_msg()
180 memset(msg.yiaddr, 0, sizeof(msg.ciaddr)); in client_prepare_test_msg()
536 zassert_equal(sys_get_be32(msg->ciaddr), 0, "Incorrect %s value", "ciaddr"); in verify_offer()
687 zassert_mem_equal(ipv4_hdr->dst, msg->ciaddr, sizeof(struct in_addr), in verify_ack()
711 zassert_mem_equal(msg->ciaddr, client_addr_static.s4_addr, in verify_ack()
715 zassert_mem_equal(msg->ciaddr, test_ctx.assigned_ip.s4_addr, in verify_ack()
719 zassert_equal(sys_get_be32(msg->ciaddr), 0, "Incorrect %s value", "ciaddr"); in verify_ack()