Lines Matching refs:in_addr
92 ret = net_ipv4_create(pkt, (struct in_addr *)src, (struct in_addr *)dst); in build_test_ip_pkt()
346 static struct in_addr ipv4_address_list[4] = {
370 struct in_addr dst = { { { 192, 168, 2, 1 } } }; in ZTEST()
371 struct in_addr bad_addr = { { { 192, 168, 2, 3 } } }; in ZTEST()
385 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, &ipv4_address_list[it], in ZTEST()
386 sizeof(struct in_addr)); in ZTEST()
391 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, in ZTEST()
392 &bad_addr, sizeof(struct in_addr)); in ZTEST()
407 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, &ipv4_address_list[it], in ZTEST()
408 sizeof(struct in_addr)); in ZTEST()
413 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, in ZTEST()
414 &bad_addr, sizeof(struct in_addr)); in ZTEST()