static inline void __ncp_start_request(struct ncp_server *server, struct ncp_request_reply *req)
{
	memcpy(server->txbuf, req->tx_iov[1].iov_base, req->tx_iov[1].iov_len);
	req->tx_iov[1].iov_base = server->txbuf;

	if (server->ncp_sock->type == SOCK_STREAM)
		ncptcp_start_request(server, req);
	else
		ncpdgram_start_request(server, req);
}
Beispiel #2
0
static inline void __ncp_start_request(struct ncp_server *server, struct ncp_request_reply *req)
{
	/* we copy the data so that we do not depend on the caller
	   staying alive */
	memcpy(server->txbuf, req->tx_iov[1].iov_base, req->tx_iov[1].iov_len);
	req->tx_iov[1].iov_base = server->txbuf;

	if (server->ncp_sock->type == SOCK_STREAM)
		ncptcp_start_request(server, req);
	else
		ncpdgram_start_request(server, req);
}
Beispiel #3
0
static inline void __ncp_start_request(struct ncp_server *server, struct ncp_request_reply *req) {
    if (server->ncp_sock->type == SOCK_STREAM)
        ncptcp_start_request(server, req);
    else
        ncpdgram_start_request(server, req);
}