Lines Matching refs:smb
37 in a similar way to the mid which is useful to track each sent smb,
325 /* to a valid remote smb user (smb_uid): */
338 /* that smb uid. If no existing smb session for */
339 /* that uid found, use the default smb session ie */
340 /* the smb session for the volume mounted which is */
345 /* with userid/password pairs found on the smb session */
360 cFYI(1, "local UID found but no smb sess with this server exists");
384 checkSMBhdr(struct smb_hdr *smb, __u16 mid)
388 if ((*(__le32 *) smb->Protocol == cpu_to_le32(0x424d53ff)) &&
389 (mid == smb->Mid)) {
390 if (smb->Flags & SMBFLG_RESPONSE)
394 if (smb->Command == SMB_COM_LOCKING_ANDX)
400 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff))
402 *(unsigned int *) smb->Protocol);
403 if (mid != smb->Mid)
406 cERROR(1, "bad smb detected. The Mid=%d", smb->Mid);
411 checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length)
413 __u32 len = smb->smb_buf_length;
419 && (smb->Status.CifsError != 0)) {
420 smb->WordCount = 0;
424 (smb->WordCount == 0)) {
425 char *tmp = (char *)smb;
440 cERROR(1, "Length less than smb header size");
445 cERROR(1, "smb length greater than MaxBufSize, mid=%d",
446 smb->Mid);
450 if (checkSMBhdr(smb, mid))
452 clc_len = smbCalcSize_LE(smb);
468 clc_len, 4 + len, smb->Mid);
478 forget to reset the smb rfc1001 length when it reset the
484 len, smb->Mid);