Lines Matching refs:in_addr

24 static struct in_addr server_addr = { { { 192, 0, 2, 1 } } };
25 static struct in_addr netmask = { { { 255, 255, 255, 0 } } };
26 static struct in_addr test_base_addr = { { { 192, 0, 2, 10 } } };
29 static struct in_addr client_addr_static = { { { 192, 0, 2, 2 } } };
39 struct in_addr assigned_ip;
40 struct in_addr declined_ip;
84 zassert_ok(net_ipv4_create(reply, (struct in_addr *)ipv4_hdr->dst, in send_icmp_echo_reply()
85 (struct in_addr *)ipv4_hdr->src), in send_icmp_echo_reply()
111 sizeof(struct in_addr)); in server_send()
146 const struct in_addr *src_addr, const struct in_addr *dst_addr, in client_prepare_test_msg()
147 enum net_dhcpv4_msg_type type, const struct in_addr *server_id, in client_prepare_test_msg()
148 const struct in_addr *requested_ip, const struct in_addr *ciaddr) in client_prepare_test_msg()
375 struct in_addr *reserved = user_data; in get_reserved_cb()
382 static void get_reserved_address(struct in_addr *reserved) in get_reserved_address()
511 sizeof(struct in_addr), "Incorrect source address"); in verify_offer()
514 sizeof(struct in_addr), in verify_offer()
518 sizeof(struct in_addr), in verify_offer()
554 memcpy(&test_ctx.assigned_ip, msg->yiaddr, sizeof(struct in_addr)); in verify_offer()
569 sizeof(struct in_addr)); in verify_offer()
573 sizeof(struct in_addr)); in verify_offer()
582 struct in_addr *reserved = user_data; in reserved_address_cb()
590 static void verify_reserved_address(struct in_addr *reserved) in verify_reserved_address()
616 struct in_addr first_addr; in ZTEST()
685 sizeof(struct in_addr), "Incorrect source address"); in verify_ack()
687 zassert_mem_equal(ipv4_hdr->dst, msg->ciaddr, sizeof(struct in_addr), in verify_ack()
690 zassert_mem_equal(ipv4_hdr->dst, msg->yiaddr, sizeof(struct in_addr), in verify_ack()
712 sizeof(struct in_addr), in verify_ack()
716 sizeof(struct in_addr), in verify_ack()
726 sizeof(struct in_addr), "Incorrect %s value", "yiaddr"); in verify_ack()
736 memcpy(&test_ctx.assigned_ip, msg->yiaddr, sizeof(struct in_addr)); in verify_ack()
757 sizeof(struct in_addr)); in verify_ack()
765 sizeof(struct in_addr)); in verify_ack()
774 struct in_addr *allocated = user_data; in allocated_address_cb()
782 static void verify_allocated_address(struct in_addr *allocated) in verify_allocated_address()
859 struct in_addr *declined = user_data; in declined_address_cb()
867 static void verify_declined_address(struct in_addr *declined) in verify_declined_address()
899 struct in_addr oldest_addr; in ZTEST()
986 struct in_addr base_addr_wrong_subnet = { { { 192, 0, 3, 10 } } }; in ZTEST()
987 struct in_addr base_addr_overlap = { { { 192, 0, 2, 1 } } }; in ZTEST()