Searched refs:psin (Results 1 – 3 of 3) sorted by relevance
68 struct sockaddr_in *psin; in verify_res() local70 psin = (struct sockaddr_in *)p->ai_addr; in verify_res()71 sin_family = psin->sin_family; in verify_res()72 sin_port = psin->sin_port; in verify_res()177 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_loopback() local179 return psin->sin_addr.s_addr != htonl(INADDR_LOOPBACK); in test_loopback()191 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive() local193 return psin->sin_addr.s_addr == 0; in test_passive()205 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive_no_host() local207 return psin->sin_addr.s_addr != 0; in test_passive_no_host()
159 struct sockaddr_in *psin = (struct sockaddr_in *)&ss; in test_sockaddr_storage() local164 af = psin->sin_family = AF_INET; in test_sockaddr_storage()165 rv = inet_pton(AF_INET, sstab[i].addr, &psin->sin_addr); in test_sockaddr_storage()
225 struct sockaddr_storage sin, *psin = &sin; in lws_socket_bind() local232 psin = (struct sockaddr_storage *)&wsi->sa46_local; in lws_socket_bind()379 if (getsockname(sockfd, (struct sockaddr *)psin, &len) == -1) in lws_socket_bind()385 ntohs(((struct sockaddr_in6 *)psin)->sin6_port) : in lws_socket_bind()386 ntohs(((struct sockaddr_in *)psin)->sin_port); in lws_socket_bind()390 memcpy(&sain, psin, sizeof(sain)); in lws_socket_bind()397 lws_sa46_write_numeric_address((lws_sockaddr46 *)psin, in lws_socket_bind()