Searched refs:si6 (Results 1 – 3 of 3) sorted by relevance
/third_party/toybox/toys/net/ |
D | ftpget.c | 125 struct sockaddr_in6 si6; in ftpget_main() local 127 socklen_t sl = sizeof(si6); in ftpget_main() 144 if (getpeername(TT.fd, (void *)&si6, &sl)) perror_exit("getpeername"); in ftpget_main() 205 si6.sin6_port = SWAP_BE16(port); // same field size/offset for v4 and v6 in ftpget_main() 206 port = xsocket(si6.sin6_family, SOCK_STREAM, 0); in ftpget_main() 208 xconnect(port, (void *)&si6, sizeof(si6)); in ftpget_main()
|
/third_party/curl/lib/ |
D | cf-socket.c | 409 struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)&sa; in bindlocal() local 558 if(Curl_inet_pton(AF_INET6, myhost, &si6->sin6_addr) > 0) { in bindlocal() 559 si6->sin6_family = AF_INET6; in bindlocal() 560 si6->sin6_port = htons(port); in bindlocal() 571 si6->sin6_scope_id = (unsigned int)scope_id; in bindlocal() 601 si6->sin6_family = AF_INET6; in bindlocal() 602 si6->sin6_port = htons(port); in bindlocal() 644 si6->sin6_port = ntohs(port); in bindlocal()
|
D | connect.c | 192 struct sockaddr_in6 *si6 = NULL; in Curl_addr2string() local 212 si6 = (struct sockaddr_in6 *)(void *) sa; in Curl_addr2string() 213 if(Curl_inet_ntop(sa->sa_family, &si6->sin6_addr, in Curl_addr2string() 215 unsigned short us_port = ntohs(si6->sin6_port); in Curl_addr2string()
|