Searched refs:pSMB (Results 1 – 7 of 7) sorted by relevance
317 static int validate_t2(struct smb_t2_rsp *pSMB) in validate_t2() argument322 if (pSMB->hdr.WordCount < 10) in validate_t2()326 if (get_unaligned_le16(&pSMB->t2_rsp.ParameterOffset) > 1024 || in validate_t2()327 get_unaligned_le16(&pSMB->t2_rsp.DataOffset) > 1024) in validate_t2()330 total_size = get_unaligned_le16(&pSMB->t2_rsp.ParameterCount); in validate_t2()337 total_size += get_unaligned_le16(&pSMB->t2_rsp.DataCount); in validate_t2()338 if (total_size > get_bcc(&pSMB->hdr) || in validate_t2()344 cifs_dump_mem("Invalid transact2 SMB: ", (char *)pSMB, in validate_t2()408 NEGOTIATE_REQ *pSMB; in CIFSSMBNegotiate() local421 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()[all …]
636 SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument645 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()646 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()649 pSMB->req.MaxMpxCount = cpu_to_le16(server->maxReq); in cifs_ssetup_hdr()650 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()660 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()663 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()667 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()671 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()1425 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local[all …]
423 struct smb_com_lock_req *pSMB = (struct smb_com_lock_req *)buf; in is_valid_oplock_break() local431 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()432 (pSMB->hdr.Flags & SMBFLG_RESPONSE)) { in is_valid_oplock_break()463 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()465 if (pSMB->hdr.Flags & SMBFLG_RESPONSE) { in is_valid_oplock_break()471 le32_to_cpu(pSMB->hdr.Status.CifsError)) { in is_valid_oplock_break()475 le16_to_cpu(pSMB->hdr.Status.DosError.Error)) { in is_valid_oplock_break()481 if (pSMB->hdr.WordCount != 8) in is_valid_oplock_break()485 pSMB->LockType, pSMB->OplockLevel); in is_valid_oplock_break()486 if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) in is_valid_oplock_break()[all …]
246 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2() local251 if (pSMB->Command != SMB_COM_TRANSACTION2) in check2ndT2()256 if (pSMB->WordCount != 10) { /* coalesce_t2 depends on this */ in check2ndT2()261 pSMBt = (struct smb_t2_rsp *)pSMB; in check2ndT2()
228 struct smb_com_lock_req *pSMB = in cifs_verify_signature() local230 if (pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE) in cifs_verify_signature()
3719 TCONX_REQ *pSMB; in CIFSTCon() local3740 pSMB = (TCONX_REQ *) smb_buffer; in CIFSTCon()3743 pSMB->AndXCommand = 0xFF; in CIFSTCon()3744 pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); in CIFSTCon()3745 bcc_ptr = &pSMB->Password[0]; in CIFSTCon()3747 pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ in CIFSTCon()3776 count = bcc_ptr - &pSMB->Password[0]; in CIFSTCon()3777 be32_add_cpu(&pSMB->hdr.smb_buf_length, count); in CIFSTCon()3778 pSMB->ByteCount = cpu_to_le16(count); in CIFSTCon()
1482 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel() local1489 pSMB->LockType = LOCKING_ANDX_CANCEL_LOCK|LOCKING_ANDX_LARGE_FILES; in send_lock_cancel()1490 pSMB->Timeout = 0; in send_lock_cancel()1491 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()