Lines Matching refs:dst_sock
25 static int sock = -1, dst_sock = -1, listen_sock = -1; variable
118 if (dst_sock >= 0 && dst_sock != listen_sock) in cleanup()
119 SAFE_CLOSE(dst_sock); in cleanup()
135 dst_sock = listen_sock; in run()
149 dst_sock = SAFE_ACCEPT(listen_sock, NULL, NULL); in run()
152 ret = check_recv(dst_sock, SENDSIZE, i + 1); in run()
158 ret = check_recv(dst_sock, 0, i + 1); in run()
164 ret = check_recv(dst_sock, SENDSIZE + 1, i + 1); in run()
171 if (dst_sock != listen_sock) in run()
172 SAFE_CLOSE(dst_sock); in run()
179 dst_sock = -1; in run()