Lines Matching refs:pdu_length
796 unsigned int pdu_length = get_rfc1002_length(buf); in standard_receive3() local
799 if (pdu_length > CIFSMaxBufSize + MAX_HEADER_SIZE(server) - 4) { in standard_receive3()
800 cifs_dbg(VFS, "SMB response too long (%u bytes)\n", pdu_length); in standard_receive3()
807 if (pdu_length > MAX_CIFS_SMALL_BUFFER_SIZE - 4) { in standard_receive3()
815 pdu_length - HEADER_SIZE(server) + 1 + 4); in standard_receive3()
852 unsigned int pdu_length; in cifs_demultiplex_thread() local
874 pdu_length = 4; /* enough to get RFC1001 header */ in cifs_demultiplex_thread()
876 length = cifs_read_from_socket(server, buf, pdu_length); in cifs_demultiplex_thread()
885 pdu_length = get_rfc1002_length(buf); in cifs_demultiplex_thread()
887 cifs_dbg(FYI, "RFC1002 header 0x%x\n", pdu_length); in cifs_demultiplex_thread()
892 if (pdu_length < HEADER_SIZE(server) - 1 - 4) { in cifs_demultiplex_thread()
894 pdu_length); in cifs_demultiplex_thread()