Lines Matching full:smb
31 in a similar way to the mid which is useful to track each sent smb,
309 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr() argument
311 /* does it have the right SMB "signature" ? */ in check_smb_hdr()
312 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) { in check_smb_hdr()
314 *(unsigned int *)smb->Protocol); in check_smb_hdr()
319 if (smb->Flags & SMBFLG_RESPONSE) in check_smb_hdr()
323 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr()
327 get_mid(smb)); in check_smb_hdr()
334 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB() local
335 __u32 rfclen = be32_to_cpu(smb->smb_buf_length); in checkSMB()
343 && (smb->Status.CifsError != 0)) { in checkSMB()
345 smb->WordCount = 0; in checkSMB()
349 (smb->WordCount == 0)) { in checkSMB()
350 char *tmp = (char *)smb; in checkSMB()
366 cifs_dbg(VFS, "Length less than smb header size\n"); in checkSMB()
369 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) { in checkSMB()
371 __func__, smb->WordCount); in checkSMB()
376 if (check_smb_hdr(smb)) in checkSMB()
378 clc_len = smbCalcSize(smb); in checkSMB()
387 __u16 mid = get_mid(smb); in checkSMB()
398 cifs_dbg(VFS, "RFC1001 size %u smaller than SMB for mid=%u\n", in checkSMB()
404 * data than the lengths in the SMB packet would in checkSMB()
411 cifs_dbg(VFS, "RFC1001 size %u more than 512 bytes larger than SMB for mid=%u\n", in checkSMB()
1227 * Handle weird Windows SMB server behaviour. It responds with