Home
last modified time | relevance | path

Searched refs:smb (Results 1 – 6 of 6) sorted by relevance

/fs/cifs/
Dmisc.c296 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr() argument
299 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) { in check_smb_hdr()
301 *(unsigned int *)smb->Protocol); in check_smb_hdr()
306 if (smb->Flags & SMBFLG_RESPONSE) in check_smb_hdr()
310 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr()
314 get_mid(smb)); in check_smb_hdr()
321 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB() local
322 __u32 rfclen = be32_to_cpu(smb->smb_buf_length); in checkSMB()
330 && (smb->Status.CifsError != 0)) { in checkSMB()
332 smb->WordCount = 0; in checkSMB()
[all …]
Dnetmisc.c813 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() local
822 if (smb->Status.CifsError == 0) in map_smb_to_linux_error()
825 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error()
828 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error()
835 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error()
836 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error()
876 le32_to_cpu(smb->Status.CifsError), rc); in map_smb_to_linux_error()
888 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error() local
890 rc = map_smb_to_linux_error((char *)smb, logErr); in map_and_check_smb_error()
891 if (rc == -EACCES && !(smb->Flags2 & SMBFLG2_ERR_STATUS)) { in map_and_check_smb_error()
[all …]
Dcifssmb.c761 ECHO_REQ *smb; in CIFSSMBEcho() local
769 rc = small_smb_init(SMB_COM_ECHO, 0, NULL, (void **)&smb); in CIFSSMBEcho()
774 smb->hdr.Flags2 |= SMBFLG2_UNICODE; in CIFSSMBEcho()
777 smb->hdr.Tid = 0xffff; in CIFSSMBEcho()
778 smb->hdr.WordCount = 1; in CIFSSMBEcho()
779 put_unaligned_le16(1, &smb->EchoCount); in CIFSSMBEcho()
780 put_bcc(1, &smb->hdr); in CIFSSMBEcho()
781 smb->Data[0] = 'a'; in CIFSSMBEcho()
782 inc_rfc1001_len(smb, 3); in CIFSSMBEcho()
785 iov[0].iov_base = smb; in CIFSSMBEcho()
[all …]
Dcifs_debug.c38 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail() local
41 smb->Command, smb->Status.CifsError, in cifs_dump_detail()
42 smb->Flags, smb->Flags2, smb->Mid, smb->Pid); in cifs_dump_detail()
43 cifs_dbg(VFS, "smb buf %p len %u\n", smb, in cifs_dump_detail()
44 server->ops->calc_smb_size(smb, server)); in cifs_dump_detail()
Dcifsglob.h876 get_mid(const struct smb_hdr *smb) in get_mid() argument
878 return le16_to_cpu(smb->Mid); in get_mid()
882 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid() argument
884 return mid == le16_to_cpu(smb->Mid); in compare_mid()
Dcifspdu.h442 BCC(struct smb_hdr *smb) in BCC() argument
444 return (void *)smb + sizeof(*smb) + 2 * smb->WordCount; in BCC()