Lines Matching defs:datalen
62 size_t datalen;
137 memcpy(req->reply_buf, server->rxbuf, req->datalen);
307 req->sign[3] = htonl(req->datalen + 8);
440 result = _recv(sock, server->rxbuf, req->datalen, MSG_DONTWAIT);
539 int datalen;
573 datalen = ntohl(server->rcv.buf.len) & 0x0FFFFFFF;
574 if (datalen < 10) {
575 printk(KERN_ERR "ncpfs: tcp: Unexpected reply len %d\n", datalen);
581 if (datalen < 18) {
582 printk(KERN_ERR "ncpfs: tcp: Unexpected reply len %d\n", datalen);
586 server->rcv.buf.len = datalen - 8;
598 if (datalen - 8 <= sizeof(server->unexpected_packet.data)) {
600 server->unexpected_packet.len = datalen - 8;
604 server->rcv.len = datalen - 10;
612 server->rcv.len = datalen - 10;
620 if (datalen > req->datalen + 8) {
621 printk(KERN_ERR "ncpfs: tcp: Unexpected reply len %d (expected at most %Zd)\n", datalen, req->datalen + 8);
625 req->datalen = datalen - 8;
628 server->rcv.len = datalen - 10;
633 datalen = server->rcv.buf.len;
653 if (sign_verify_reply(server, server->rxbuf + 6, req->datalen - 6, cpu_to_be32(req->datalen + 16), &server->rcv.buf.type)) {
660 ncp_finish_request(server, req, req->datalen);
710 req->datalen = max_reply_size;