Home
last modified time | relevance | path

Searched refs:psin (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c68 struct sockaddr_in *psin; in verify_res() local
70 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() local
179 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() local
193 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() local
207 return psin->sin_addr.s_addr != 0; in test_passive_no_host()
Din6_01.c159 struct sockaddr_in *psin = (struct sockaddr_in *)&ss; in test_sockaddr_storage() local
164 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()
/third_party/libwebsockets/lib/core-net/
Dnetwork.c225 struct sockaddr_storage sin, *psin = &sin; in lws_socket_bind() local
232 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()