Lines Matching refs:sin1
74 static struct sockaddr_in sin1; /* shared between do_child and create_server */ variable
164 length = sizeof(sin1); in do_child()
165 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, in do_child()
214 socklen_t slen = sizeof(sin1); in create_server()
222 sin1.sin_family = AF_INET; in create_server()
223 sin1.sin_port = 0; /* pick random free port */ in create_server()
224 sin1.sin_addr.s_addr = INADDR_ANY; in create_server()
226 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { in create_server()
231 SAFE_GETSOCKNAME(cleanup, sockfd, (struct sockaddr *)&sin1, &slen); in create_server()
252 inet_aton("127.0.0.1", &sin1.sin_addr); in create_server()
258 SAFE_CONNECT(cleanup, s, (struct sockaddr *)&sin1, sizeof(sin1)); in create_server()