Lines Matching refs:datalen
63 size_t datalen; member
138 memcpy(req->reply_buf, server->rxbuf, req->datalen); in ncp_finish_request()
308 req->sign[3] = htonl(req->datalen + 8); in ncptcp_start_request()
441 result = _recv(sock, server->rxbuf, req->datalen, MSG_DONTWAIT); in ncpdgram_rcv_proc()
540 int datalen; in __ncptcp_rcv_proc() local
574 datalen = ntohl(server->rcv.buf.len) & 0x0FFFFFFF; in __ncptcp_rcv_proc()
575 if (datalen < 10) { in __ncptcp_rcv_proc()
576 pr_err("tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
582 if (datalen < 18) { in __ncptcp_rcv_proc()
583 pr_err("tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
587 server->rcv.buf.len = datalen - 8; in __ncptcp_rcv_proc()
599 if (datalen - 8 <= sizeof(server->unexpected_packet.data)) { in __ncptcp_rcv_proc()
601 server->unexpected_packet.len = datalen - 8; in __ncptcp_rcv_proc()
605 server->rcv.len = datalen - 10; in __ncptcp_rcv_proc()
613 server->rcv.len = datalen - 10; in __ncptcp_rcv_proc()
621 if (datalen > req->datalen + 8) { in __ncptcp_rcv_proc()
622 pr_err("tcp: Unexpected reply len %d (expected at most %Zd)\n", datalen, req->datalen + 8); in __ncptcp_rcv_proc()
626 req->datalen = datalen - 8; in __ncptcp_rcv_proc()
629 server->rcv.len = datalen - 10; in __ncptcp_rcv_proc()
634 datalen = server->rcv.buf.len; in __ncptcp_rcv_proc()
654 …if (sign_verify_reply(server, server->rxbuf + 6, req->datalen - 6, cpu_to_be32(req->datalen + 16),… in __ncptcp_rcv_proc()
661 ncp_finish_request(server, req, req->datalen); in __ncptcp_rcv_proc()
711 req->datalen = max_reply_size; in do_ncp_rpc_call()