Lines Matching refs:connfd

157 static int send_reply_devlist(int connfd)  in send_reply_devlist()  argument
184 rc = usbip_net_send_op_common(connfd, OP_REP_DEVLIST, ST_OK); in send_reply_devlist()
191 rc = usbip_net_send(connfd, &reply, sizeof(reply)); in send_reply_devlist()
206 rc = usbip_net_send(connfd, &pdu_udev, sizeof(pdu_udev)); in send_reply_devlist()
217 rc = usbip_net_send(connfd, &pdu_uinf, in send_reply_devlist()
229 static int recv_request_devlist(int connfd) in recv_request_devlist() argument
236 rc = usbip_net_recv(connfd, &req, sizeof(req)); in recv_request_devlist()
242 rc = send_reply_devlist(connfd); in recv_request_devlist()
251 static int recv_pdu(int connfd) in recv_pdu() argument
257 ret = usbip_net_recv_op_common(connfd, &code, &status); in recv_pdu()
269 info("received request: %#0x(%d)", code, connfd); in recv_pdu()
272 ret = recv_request_devlist(connfd); in recv_pdu()
275 ret = recv_request_import(connfd); in recv_pdu()
285 info("request %#0x(%d): complete", code, connfd); in recv_pdu()
287 info("request %#0x(%d): failed", code, connfd); in recv_pdu()
293 static int tcpd_auth(int connfd) in tcpd_auth() argument
298 request_init(&request, RQ_DAEMON, PROGNAME, RQ_FILE, connfd, 0); in tcpd_auth()
310 int connfd; in do_accept() local
318 connfd = accept(listenfd, (struct sockaddr *)&ss, &len); in do_accept()
319 if (connfd < 0) { in do_accept()
330 rc = tcpd_auth(connfd); in do_accept()
333 close(connfd); in do_accept()
339 return connfd; in do_accept()
345 int connfd; in process_request() local
347 connfd = do_accept(listenfd); in process_request()
348 if (connfd < 0) in process_request()
353 recv_pdu(connfd); in process_request()
356 close(connfd); in process_request()