Lines Matching refs:sin1
73 static struct sockaddr_in sin1; /* shared between do_child and create_server */ variable
161 length = sizeof(sin1); in do_child()
162 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, in do_child()
211 socklen_t slen = sizeof(sin1); in create_server()
219 sin1.sin_family = AF_INET; in create_server()
220 sin1.sin_port = 0; /* pick random free port */ in create_server()
221 sin1.sin_addr.s_addr = INADDR_ANY; in create_server()
223 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { in create_server()
228 SAFE_GETSOCKNAME(cleanup, sockfd, (struct sockaddr *)&sin1, &slen); in create_server()
249 inet_aton("127.0.0.1", &sin1.sin_addr); in create_server()
255 SAFE_CONNECT(cleanup, s, (struct sockaddr *)&sin1, sizeof(sin1)); in create_server()