Home
last modified time | relevance | path

Searched refs:serveraddr (Results 1 – 6 of 6) sorted by relevance

/external/compiler-rt/test/asan/TestCases/Linux/
Drecvfrom.cc35 struct sockaddr_in serveraddr; in client_thread_udp() local
36 socklen_t addrlen = sizeof(serveraddr); in client_thread_udp()
38 int succeeded = getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); in client_thread_udp()
41 succeeded = sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, in client_thread_udp()
42 sizeof(serveraddr)); in client_thread_udp()
56 struct sockaddr_in serveraddr; in main() local
61 memset(&serveraddr, 0, sizeof(serveraddr)); in main()
62 serveraddr.sin_family = AF_INET; in main()
63 serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
64 serveraddr.sin_port = 0; in main()
[all …]
/external/compiler-rt/test/msan/Linux/
Dsendmsg.cc35 struct sockaddr_in serveraddr; in main() local
39 memset(&serveraddr, 0, sizeof(serveraddr)); in main()
40 serveraddr.sin_family = AF_INET; in main()
41 serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
42 serveraddr.sin_port = 0; in main()
44 bind(sockfd, (struct sockaddr *)&serveraddr, sizeof(serveraddr)); in main()
45 socklen_t addrlen = sizeof(serveraddr); in main()
46 getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); in main()
55 msg.msg_name = &serveraddr; in main()
65 ret = connect(sockfd, (struct sockaddr *)&serveraddr, addrlen); in main()
[all …]
Dcmsghdr.cc31 struct sockaddr_un serveraddr; in main() local
/external/curl/tests/server/
Dsws.c1354 srvr_sockaddr_union_t serveraddr; in connect_to() local
1395 memset(&serveraddr.sa4, 0, sizeof(serveraddr.sa4)); in connect_to()
1396 serveraddr.sa4.sin_family = AF_INET; in connect_to()
1397 serveraddr.sa4.sin_port = htons(port); in connect_to()
1398 if(Curl_inet_pton(AF_INET, ipaddr, &serveraddr.sa4.sin_addr) < 1) { in connect_to()
1404 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to()
1408 memset(&serveraddr.sa6, 0, sizeof(serveraddr.sa6)); in connect_to()
1409 serveraddr.sa6.sin6_family = AF_INET6; in connect_to()
1410 serveraddr.sa6.sin6_port = htons(port); in connect_to()
1411 if(Curl_inet_pton(AF_INET6, ipaddr, &serveraddr.sa6.sin6_addr) < 1) { in connect_to()
[all …]
/external/dnsmasq/src/
Dforward.c410 union mysockaddr serveraddr; in reply_query() local
412 socklen_t addrlen = sizeof(serveraddr); in reply_query()
413 ssize_t n = recvfrom(fd, daemon->packet, daemon->edns_pktsz, 0, &serveraddr.sa, &addrlen); in reply_query()
421 serveraddr.sa.sa_family = family; in reply_query()
423 if (serveraddr.sa.sa_family == AF_INET6) serveraddr.in6.sin6_flowinfo = 0; in reply_query()
429 sockaddr_isequal(&server->addr, &serveraddr)) in reply_query()
473 sockaddr_isequal(&last_server->addr, &serveraddr)) { in reply_query()
/external/u-boot/
DREADME1454 Keeps the server's MAC address, in the env 'serveraddr'