Lines Matching refs:sin1
52 static struct sockaddr_in sin1; variable
110 socklen_t length = sizeof(sin1); in do_child()
115 ret = recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, in do_child()
155 socklen_t slen = sizeof(sin1); in create_server()
163 sin1.sin_family = AF_INET; in create_server()
164 sin1.sin_port = 0; /* pick random free port */ in create_server()
165 sin1.sin_addr.s_addr = INADDR_ANY; in create_server()
167 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { in create_server()
172 SAFE_GETSOCKNAME(cleanup, sockfd, (struct sockaddr *)&sin1, &slen); in create_server()
194 inet_aton("127.0.0.1", &sin1.sin_addr); in create_server()
202 SAFE_CONNECT(cleanup, s, (struct sockaddr *)&sin1, sizeof(sin1)); in create_server()