Home
last modified time | relevance | path

Searched refs:sa4 (Results 1 – 15 of 15) 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.c1242 memset(&listener.sa4, 0, sizeof(listener.sa4)); in sockdaemon()
1243 listener.sa4.sin_family = AF_INET; in sockdaemon()
1244 listener.sa4.sin_addr.s_addr = INADDR_ANY; in sockdaemon()
1245 listener.sa4.sin_port = htons(*listenport); in sockdaemon()
1246 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
1273 la_size = sizeof(localaddr.sa4); in sockdaemon()
1288 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
1477 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1478 me.sa4.sin_family = AF_INET; in main()
1479 me.sa4.sin_port = htons(connectport); in main()
[all …]
Dtftpd.c648 fromaddrlen = sizeof(fromaddr.sa4); in synchnet()
788 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
789 me.sa4.sin_family = AF_INET; in main()
790 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
791 me.sa4.sin_port = htons(port); in main()
792 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
824 fromlen = sizeof(from.sa4); in main()
845 from.sa4.sin_family = AF_INET; in main()
852 if(connect(peer, &from.sa, sizeof(from.sa4)) < 0) { in main()
Dserver_sockaddr.h32 struct sockaddr_in sa4; member
Dsws.c1333 memset(&serveraddr.sa4, 0, sizeof(serveraddr.sa4)); in connect_to()
1334 serveraddr.sa4.sin_family = AF_INET; in connect_to()
1335 serveraddr.sa4.sin_port = htons(port); in connect_to()
1336 if(Curl_inet_pton(AF_INET, ipaddr, &serveraddr.sa4.sin_addr) < 1) { in connect_to()
1342 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to()
2119 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
2120 me.sa4.sin_family = AF_INET; in main()
2121 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
2122 me.sa4.sin_port = htons(port); in main()
2123 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
Drtspd.c1303 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1304 me.sa4.sin_family = AF_INET; in main()
1305 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
1306 me.sa4.sin_port = htons(port); in main()
1307 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c277 struct sockaddr_in sa4; in mDNSPlatformInit() local
343 sa4.sin_family = AF_INET; in mDNSPlatformInit()
344 sa4.sin_addr.s_addr = INADDR_ANY; in mDNSPlatformInit()
345 …err = SetupSocket( inMDNS, (const struct sockaddr*) &sa4, zeroIPPort, &inMDNS->p->unicastSock4.fd … in mDNSPlatformInit()
347 sa4len = sizeof( sa4 ); in mDNSPlatformInit()
348 err = getsockname( inMDNS->p->unicastSock4.fd, (struct sockaddr*) &sa4, &sa4len ); in mDNSPlatformInit()
350 inMDNS->p->unicastSock4.port.NotAnInteger = sa4.sin_port; in mDNSPlatformInit()
1551 struct sockaddr_in * sa4; in mDNSPlatformSendUDP() local
1553 sa4 = (struct sockaddr_in *) &addr; in mDNSPlatformSendUDP()
1554 sa4->sin_family = AF_INET; in mDNSPlatformSendUDP()
[all …]
/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.c992 struct sockaddr_in * const sa4 = (void *)sa; in ftp_state_use_port() local
1125 Curl_inet_ntop(sa->sa_family, &sa4->sin_addr, hbuf, sizeof(hbuf)); in ftp_state_use_port()
1178 sa4->sin_port = htons(port); in ftp_state_use_port()
1269 port = ntohs(sa4->sin_port); in ftp_state_use_port()