Home
last modified time | relevance | path

Searched refs:inet_addr (Results 1 – 25 of 37) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_004.cpp50 ia.s_addr = inet_addr("127.0.0.1"); in GetHostByAddrTest()
57 ia.s_addr = inet_addr("100.0.0.0"); in GetHostByAddrTest()
64 ia.s_addr = inet_addr("127.0.0.0"); in GetHostByAddrTest()
Dnet_netdb_test_005.cpp43 ia.s_addr = inet_addr("127.0.0.1"); in GetHostByAddrRTest()
52 ia.s_addr = inet_addr("127.0.0.0"); in GetHostByAddrRTest()
Dnet_netdb_test_010.cpp41 addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in NameInfoTest()
/kernel/liteos_m/components/net/test/
Dnet_socket_test_003.c60 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
90 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpServer()
149 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
162 inet_addr(PEER_IP), 14); in SampleTcpClient()
171 inet_addr(STACK_IP), 17); in SampleTcpClient()
189 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
Dnet_socket_test_008.c72 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
115 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
128 inet_addr(PEER_IP), 11); in SampleTcpClient()
137 inet_addr(STACK_IP), 14); in SampleTcpClient()
Dnet_socket_test_002.c61 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in UdpTestTask()
68 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpTestTask()
88 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpTestTask()
Dnet_socket_test_007.c65 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in UdpTestMoreTask()
72 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpTestMoreTask()
Dnet_socket_test_013.c55 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
91 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
Dnet_socket_test_012.c62 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
99 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
Dnet_socket_test_010.c63 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
117 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
Dnet_socket_test_009.c64 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
122 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_003.cpp69 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
108 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpServer()
176 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
189 inet_addr(PEER_IP), (static_cast<struct sockaddr_in *>(&addr))->sin_addr.s_addr); in SampleTcpClient()
198 inet_addr(STACK_IP), (static_cast<struct sockaddr_in *>(&addr))->sin_addr.s_addr); in SampleTcpClient()
223 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
Dnet_socket_test_002.cpp65 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in UdpTest()
72 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpTest()
91 clnAddr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpTest()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_005.cpp63 server_addr.sin_addr.s_addr = inet_addr(SERVER_IP); in UdpClient()
68 peer_addr.sin_addr.s_addr = inet_addr(PEER_IP); in UdpClient()
134 server_addr.sin_addr.s_addr = inet_addr(SERVER_IP); in UdpServer()
DIt_net_container_009.cpp62 server_addr.sin_addr.s_addr = inet_addr(SERVER_IP); in TcpClient()
114 server_addr.sin_addr.s_addr = inet_addr(SERVER_IP); in TcpServer()
DIt_net_container_007.cpp53 addr.sin_addr.s_addr = inet_addr(LOCALHOST); in ChildFunc()
DIt_net_container_008.cpp52 sa.sin_addr.s_addr = inet_addr(LOCALHOST); in UdpTcpBind()
/kernel/linux/linux-5.10/include/linux/
Dnetpoll.h17 union inet_addr { union
30 union inet_addr local_ip, remote_ip;
/kernel/liteos_m/testsuites/unittest/fuzz/src/socket/
Dnet_fuzz.c82 srvAddr.sin_addr.s_addr = inet_addr(g_udpIp); in SampleUdpServer()
121 clnAddr.sin_addr.s_addr = inet_addr(g_udpIp); in SampleUdpClient()
213 srvAddr.sin_addr.s_addr = inet_addr(STACK_IP); in SampleTcpServer()
250 srvAddr.sin_addr.s_addr = inet_addr(PEER_IP); in SampleTcpClient()
/kernel/liteos_m/kal/libc/newlib/porting/include/arpa/
Dinet.h41 in_addr_t inet_addr(const char *cp);
/kernel/liteos_a/apps/tftp/src/
Dmain.c125 ulRemoteAddr = inet_addr(argv[i]); in osShellTftp()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dreuseaddr_conflict.c39 .sin_addr.s_addr = any ? htonl(INADDR_ANY) : inet_addr("127.0.0.1"), in open_port()
Dreuseaddr_ports_exhausted.c70 local_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in bind_port()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c45 in->sin_addr.s_addr = inet_addr("255.255.255.255"); in test_probe_user()
/kernel/linux/linux-5.10/samples/bpf/
Dtest_probe_write_user_user.c78 mapped_addr_in->sin_addr.s_addr = inet_addr("255.255.255.255"); in main()

12