Searched refs:pSMB (Results 1 – 7 of 7) sorted by relevance
375 static int validate_t2(struct smb_t2_rsp *pSMB) in validate_t2() argument380 if (pSMB->hdr.WordCount < 10) in validate_t2()384 if (get_unaligned_le16(&pSMB->t2_rsp.ParameterOffset) > 1024 || in validate_t2()385 get_unaligned_le16(&pSMB->t2_rsp.DataOffset) > 1024) in validate_t2()388 total_size = get_unaligned_le16(&pSMB->t2_rsp.ParameterCount); in validate_t2()395 total_size += get_unaligned_le16(&pSMB->t2_rsp.DataCount); in validate_t2()396 if (total_size > get_bcc(&pSMB->hdr) || in validate_t2()402 cifs_dump_mem("Invalid transact2 SMB: ", (char *)pSMB, in validate_t2()593 NEGOTIATE_REQ *pSMB; in CIFSSMBNegotiate() local607 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()[all …]
313 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument322 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()323 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()326 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()327 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()338 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()341 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()345 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()349 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()975 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local[all …]
410 struct smb_com_lock_req *pSMB = (struct smb_com_lock_req *)buf; in is_valid_oplock_break() local418 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()419 (pSMB->hdr.Flags & SMBFLG_RESPONSE)) { in is_valid_oplock_break()450 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()452 if (pSMB->hdr.Flags & SMBFLG_RESPONSE) { in is_valid_oplock_break()458 le32_to_cpu(pSMB->hdr.Status.CifsError)) { in is_valid_oplock_break()462 le16_to_cpu(pSMB->hdr.Status.DosError.Error)) { in is_valid_oplock_break()468 if (pSMB->hdr.WordCount != 8) in is_valid_oplock_break()472 pSMB->LockType, pSMB->OplockLevel); in is_valid_oplock_break()473 if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) in is_valid_oplock_break()[all …]
1418 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel() local1425 pSMB->LockType = LOCKING_ANDX_CANCEL_LOCK|LOCKING_ANDX_LARGE_FILES; in send_lock_cancel()1426 pSMB->Timeout = 0; in send_lock_cancel()1427 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()
239 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2() local244 if (pSMB->Command != SMB_COM_TRANSACTION2) in check2ndT2()249 if (pSMB->WordCount != 10) { /* coalesce_t2 depends on this */ in check2ndT2()254 pSMBt = (struct smb_t2_rsp *)pSMB; in check2ndT2()
4839 TCONX_REQ *pSMB; in CIFSTCon() local4860 pSMB = (TCONX_REQ *) smb_buffer; in CIFSTCon()4863 pSMB->AndXCommand = 0xFF; in CIFSTCon()4864 pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); in CIFSTCon()4865 bcc_ptr = &pSMB->Password[0]; in CIFSTCon()4867 pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ in CIFSTCon()4872 pSMB->PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in CIFSTCon()4929 count = bcc_ptr - &pSMB->Password[0]; in CIFSTCon()4930 be32_add_cpu(&pSMB->hdr.smb_buf_length, count); in CIFSTCon()4931 pSMB->ByteCount = cpu_to_le16(count); in CIFSTCon()
226 struct smb_com_lock_req *pSMB = in cifs_verify_signature() local228 if (pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE) in cifs_verify_signature()