Searched refs:serveraddr (Results 1 – 5 of 5) sorted by relevance
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | recvfrom.cc | 35 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/ |
D | sendmsg.cc | 35 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 …]
|
D | cmsghdr.cc | 31 struct sockaddr_un serveraddr; in main() local
|
/external/curl/tests/server/ |
D | sws.c | 1292 srvr_sockaddr_union_t serveraddr; in connect_to() local 1333 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() 1346 memset(&serveraddr.sa6, 0, sizeof(serveraddr.sa6)); in connect_to() 1347 serveraddr.sa6.sin6_family = AF_INET6; in connect_to() 1348 serveraddr.sa6.sin6_port = htons(port); in connect_to() 1349 if(Curl_inet_pton(AF_INET6, ipaddr, &serveraddr.sa6.sin6_addr) < 1) { in connect_to() [all …]
|
/external/dnsmasq/src/ |
D | forward.c | 476 union mysockaddr serveraddr; in reply_query() local 478 socklen_t addrlen = sizeof(serveraddr); in reply_query() 479 ssize_t n = recvfrom(fd, daemon->packet, daemon->edns_pktsz, 0, &serveraddr.sa, &addrlen); in reply_query() 487 serveraddr.sa.sa_family = family; in reply_query() 489 if (serveraddr.sa.sa_family == AF_INET6) in reply_query() 490 serveraddr.in6.sin6_flowinfo = 0; in reply_query() 496 sockaddr_isequal(&server->addr, &serveraddr)) in reply_query() 545 sockaddr_isequal(&last_server->addr, &serveraddr)) in reply_query()
|