Lines Matching refs:pdu_length
785 unsigned int pdu_length = get_rfc1002_length(buf); in standard_receive3() local
788 if (pdu_length > CIFSMaxBufSize + MAX_HEADER_SIZE(server) - 4) { in standard_receive3()
789 cifs_dbg(VFS, "SMB response too long (%u bytes)\n", pdu_length); in standard_receive3()
796 if (pdu_length > MAX_CIFS_SMALL_BUFFER_SIZE - 4) { in standard_receive3()
804 pdu_length - HEADER_SIZE(server) + 1 + 4); in standard_receive3()
841 unsigned int pdu_length; in cifs_demultiplex_thread() local
863 pdu_length = 4; /* enough to get RFC1001 header */ in cifs_demultiplex_thread()
865 length = cifs_read_from_socket(server, buf, pdu_length); in cifs_demultiplex_thread()
874 pdu_length = get_rfc1002_length(buf); in cifs_demultiplex_thread()
876 cifs_dbg(FYI, "RFC1002 header 0x%x\n", pdu_length); in cifs_demultiplex_thread()
881 if (pdu_length < HEADER_SIZE(server) - 1 - 4) { in cifs_demultiplex_thread()
883 pdu_length); in cifs_demultiplex_thread()