Home
last modified time | relevance | path

Searched refs:inet_ntop (Results 1 – 19 of 19) sorted by relevance

/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_019.cpp61 …ICUNIT_ASSERT_STRING_EQUAL("127.0.0.1", inet_ntop(AF_INET, se1->h_addr_list[0], addr, INET_ADDRSTR… in GetHostEntTest()
83 …ICUNIT_ASSERT_STRING_EQUAL("::1", inet_ntop(AF_INET6, se3->h_addr_list[0], addr, INET6_ADDRSTRLEN)… in GetHostEntTest()
89 …ICUNIT_ASSERT_STRING_EQUAL("10.0.0.0", inet_ntop(AF_INET, se3->h_addr_list[0], addr, INET_ADDRSTRL… in GetHostEntTest()
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
Dsockaddr.c18 inet_ntop(sin->sin_family, &sin->sin_addr, tmp, sizeof(tmp))); in af_inet__scnprintf()
27 inet_ntop(sin6->sin6_family, &sin6->sin6_addr, tmp, sizeof(tmp))); in af_inet6__scnprintf()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dsock_fields.c65 inet_ntop(AF_INET, &sk->src_ip4, src_ip4, sizeof(src_ip4)); in print_sk()
66 inet_ntop(AF_INET6, &sk->src_ip6, src_ip6, sizeof(src_ip6)); in print_sk()
67 inet_ntop(AF_INET, &sk->dst_ip4, dst_ip4, sizeof(dst_ip4)); in print_sk()
68 inet_ntop(AF_INET6, &sk->dst_ip6, dst_ip6, sizeof(dst_ip6)); in print_sk()
/kernel/liteos_m/testsuites/unittest/xts/net/
Dacts_net_test.c347 ret = inet_ntop(AF_INET, &inputAddr, rstBuff, sizeof(rstBuff));
371 ret = inet_ntop(AF_INET, &inputAddr, rstBuff, sizeof(rstBuff));
393 ret = inet_ntop(AF_IPX, &inputAddr, rstBuff, sizeof(rstBuff));
395 …ret = inet_ntop(-1, &inputAddr, rstBuff, sizeof(rstBuff)); /* -1, common data for test, no special…
/kernel/liteos_m/components/net/test/
Dnet_socket_test_006.c57 p = inet_ntop(AF_INET, &in, buf, sizeof(buf)); in InetTest()
Dnet_socket_test_011.c208 (void)inet_ntop(AF_INET, &ip4_addr_scr.addr, buf, sizeof(buf)); in ParsePackageIpUdp()
210 (void)inet_ntop(AF_INET, &ip4_addr_dest.addr, buf, sizeof(buf)); in ParsePackageIpUdp()
/kernel/liteos_m/kal/libc/newlib/porting/include/arpa/
Dinet.h45 const char *inet_ntop(int af, const void *__restrict src, char *__restrict dst, socklen_t size);
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_006.cpp77 p = inet_ntop(AF_INET, &in, buf, sizeof(buf)); in InetTest()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dnettest.c191 inet_ntop(AF_INET, &s->sin_addr, addrstr, in log_address()
200 inet_ntop(AF_INET6, &s6->sin6_addr, addrstr, in log_address()
538 inet_ntop(AF_INET, exp_in, in expected_addr_match()
549 inet_ntop(AF_INET6, exp_in, in expected_addr_match()
617 inet_ntop(AF_INET, &pi->ipi_addr, buf, sizeof(buf)); in get_index_from_cmsg()
624 inet_ntop(AF_INET6, &pi6->ipi6_addr, buf, sizeof(buf)); in get_index_from_cmsg()
Dtxtimestamp.c281 saddr ? inet_ntop(family, saddr, sa, sizeof(sa)) : "unknown", in print_pktinfo()
282 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown"); in print_pktinfo()
/kernel/liteos_a/compat/posix/src/
Dsocket.c156 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() function
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dxdping.c57 inet_ntop(AF_INET, &inaddr, inaddrbuf, in get_stats()
Dtest_flow_dissector.c136 if (!inet_ntop(addr->sa_family, ((void *) addr) + off, nbuf, in util_printaddr()
/kernel/liteos_m/components/net/lwip-2.1/porting/src/
Dapi_shell.c458 … PRINTK("\n[%u]Reply from %s: ", i, inet_ntop(AF_INET, &to.sin_addr, buf, sizeof(buf))); in OsPingFunc()
504 PRINTK("\n--- %s ping statistics ---\n", inet_ntop(AF_INET, &to.sin_addr, buf, sizeof(buf))); in OsPingFunc()
Dsockets_porting.c157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() function
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c337 inet_ntop(AF_INET, RTA_DATA(attrs), str, sizeof(str)); in print_addr()
344 inet_ntop(AF_INET6, RTA_DATA(attrs), str, sizeof(str)); in print_addr()
/kernel/linux/linux-5.10/tools/hv/
Dhv_kvp_daemon.c776 str = inet_ntop(family, &addr->sin_addr, tmp, 50); in kvp_process_ip_address()
780 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address()
/kernel/uniproton/src/net/lwip-2.1/src/
Dsockets.c153 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() function
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Dapi_shell.c1760 … PRINTK("\n[%u]Reply from %s: ", i, inet_ntop(AF_INET, &to.sin_addr, buf, sizeof(buf)));
1805 PRINTK("\n--- %s ping statistics ---\n", inet_ntop(AF_INET, &to.sin_addr, buf, sizeof(buf)));
2201 …if (lwip_strnicmp(inet_ntop(AF_INET6, &to.sin6_addr, buf, sizeof(buf)), argv[ping6_params.host_ind…
2210 …PRINTK("PING %s with %d bytes of data\n", inet_ntop(AF_INET6, &to.sin6_addr, buf, sizeof(buf)), LW…
2318 inet_ntop(AF_INET6, &to.sin6_addr, buf, sizeof(buf)),