Home
last modified time | relevance | path

Searched refs:sa4 (Results 1 – 14 of 14) sorted by relevance

/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c70 struct sockaddr_in sa4; in ConnectAndAccept() local
76 memset(&sa4, 0, sizeof(sa4)); in ConnectAndAccept()
77 sa4.sin_family = AF_INET; in ConnectAndAccept()
78 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in ConnectAndAccept()
79 sa4.sin_port = port; in ConnectAndAccept()
80 if (connect(client_fd, (struct sockaddr*)(&sa4), in ConnectAndAccept()
173 struct sockaddr_in sa4; in CreateServerConnectAndAccept() local
179 memset(&sa4, 0, sizeof(sa4)); in CreateServerConnectAndAccept()
180 sa4.sin_family = AF_INET; in CreateServerConnectAndAccept()
181 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in CreateServerConnectAndAccept()
[all …]
/external/c-ares/
Dares_process.c438 struct sockaddr_in sa4; in read_udp_packets() member
477 fromlen = sizeof(from.sa4); in read_udp_packets()
875 struct sockaddr_in sa4; in configure_socket() member
912 memset(&local.sa4, 0, sizeof(local.sa4)); in configure_socket()
913 local.sa4.sin_family = AF_INET; in configure_socket()
914 local.sa4.sin_addr.s_addr = htonl(channel->local_ip4); in configure_socket()
915 if (bind(s, &local.sa, sizeof(local.sa4)) < 0) in configure_socket()
938 struct sockaddr_in sa4; in open_tcp_socket() member
946 sa = (void *)&saddr.sa4; in open_tcp_socket()
947 salen = sizeof(saddr.sa4); in open_tcp_socket()
[all …]
/external/curl/tests/server/
Dsockfilt.c1221 memset(&listener.sa4, 0, sizeof(listener.sa4)); in sockdaemon()
1222 listener.sa4.sin_family = AF_INET; in sockdaemon()
1223 listener.sa4.sin_addr.s_addr = INADDR_ANY; in sockdaemon()
1224 listener.sa4.sin_port = htons(*listenport); in sockdaemon()
1225 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
1252 la_size = sizeof(localaddr.sa4); in sockdaemon()
1267 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
1456 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1457 me.sa4.sin_family = AF_INET; in main()
1458 me.sa4.sin_port = htons(connectport); in main()
[all …]
Dtftpd.c644 fromaddrlen = sizeof(fromaddr.sa4); in synchnet()
784 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
785 me.sa4.sin_family = AF_INET; in main()
786 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
787 me.sa4.sin_port = htons(port); in main()
788 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
820 fromlen = sizeof(from.sa4); in main()
841 from.sa4.sin_family = AF_INET; in main()
848 if(connect(peer, &from.sa, sizeof(from.sa4)) < 0) { in main()
Dserver_sockaddr.h32 struct sockaddr_in sa4; member
Dsws.c1328 memset(&serveraddr.sa4, 0, sizeof(serveraddr.sa4)); in connect_to()
1329 serveraddr.sa4.sin_family = AF_INET; in connect_to()
1330 serveraddr.sa4.sin_port = htons(port); in connect_to()
1331 if(Curl_inet_pton(AF_INET, ipaddr, &serveraddr.sa4.sin_addr) < 1) { in connect_to()
1337 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to()
2113 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
2114 me.sa4.sin_family = AF_INET; in main()
2115 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
2116 me.sa4.sin_port = htons(port); in main()
2117 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
Drtspd.c1292 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1293 me.sa4.sin_family = AF_INET; in main()
1294 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
1295 me.sa4.sin_port = htons(port); in main()
1296 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
/external/skia/tests/
DGrAllocatorTest.cpp89 GrSTAllocator<4, C> sa4; in DEF_TEST() local
90 allocators.push_back(&sa4); in DEF_TEST()
/external/fdlibm/
Ds_erf.c167 sa4 = 6.45387271733267880336e+02, /* 0x40842B19, 0x21EC2868 */ variable
232 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(
293 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(
/external/mdnsresponder/mDNSShared/
Ddnssd_clientshim.c722 struct sockaddr_in sa4; in DNSServiceGetAddrInfoResponse() local
724 mDNSPlatformMemZero(&sa4, sizeof(sa4)); in DNSServiceGetAddrInfoResponse()
727 sa4.sin_family = AF_INET; in DNSServiceGetAddrInfoResponse()
728 mDNSPlatformMemCopy(&sa4.sin_addr.s_addr, inRData, 4); in DNSServiceGetAddrInfoResponse()
732 (const struct sockaddr *) &sa4, inTTL, x->context); in DNSServiceGetAddrInfoResponse()
Ddnssd_clientstub.c1266 struct sockaddr_in sa4; in handle_addrinfo_response() local
1268 …const struct sockaddr *const sa = (rrtype == kDNSServiceType_A) ? (struct sockaddr*)&sa4 : (struct… in handle_addrinfo_response()
1271 memset(&sa4, 0, sizeof(sa4)); in handle_addrinfo_response()
1273 sa4.sin_len = sizeof(struct sockaddr_in); in handle_addrinfo_response()
1275 sa4.sin_family = AF_INET; in handle_addrinfo_response()
1277 if (!cbh->cb_err) memcpy(&sa4.sin_addr, rdata, rdlen); in handle_addrinfo_response()
DDebugServices.c2852 struct sockaddr_in sa4; in DebugServicesTest() local
2854 memset( &sa4, 0, sizeof( sa4 ) ); in DebugServicesTest()
2855 sa4.sin_family = AF_INET; in DebugServicesTest()
2856 p = (uint8_t *) &sa4.sin_port; in DebugServicesTest()
2859 p = (uint8_t *) &sa4.sin_addr.s_addr; in DebugServicesTest()
2864 DebugSNPrintF( s, sizeof( s ), "%##a", &sa4 ); in DebugServicesTest()
/external/curl/lib/
Dhostip.c168 const struct sockaddr_in *sa4; in Curl_printable_address() local
177 sa4 = (const void *)ai->ai_addr; in Curl_printable_address()
178 ipaddr4 = &sa4->sin_addr; in Curl_printable_address()
Dftp.c981 struct sockaddr_in * const sa4 = (void *)sa; in ftp_state_use_port() local
1114 Curl_inet_ntop(sa->sa_family, &sa4->sin_addr, hbuf, sizeof(hbuf)); in ftp_state_use_port()
1167 sa4->sin_port = htons(port); in ftp_state_use_port()
1258 port = ntohs(sa4->sin_port); in ftp_state_use_port()