Searched refs:pSMB (Results 1 – 7 of 7) sorted by relevance
344 static int validate_t2(struct smb_t2_rsp *pSMB) in validate_t2() argument349 if (pSMB->hdr.WordCount < 10) in validate_t2()353 if (get_unaligned_le16(&pSMB->t2_rsp.ParameterOffset) > 1024 || in validate_t2()354 get_unaligned_le16(&pSMB->t2_rsp.DataOffset) > 1024) in validate_t2()357 total_size = get_unaligned_le16(&pSMB->t2_rsp.ParameterCount); in validate_t2()364 total_size += get_unaligned_le16(&pSMB->t2_rsp.DataCount); in validate_t2()365 if (total_size > get_bcc(&pSMB->hdr) || in validate_t2()371 cifs_dump_mem("Invalid transact2 SMB: ", (char *)pSMB, in validate_t2()435 NEGOTIATE_REQ *pSMB; in CIFSSMBNegotiate() local448 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()[all …]
507 SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument516 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()517 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()520 pSMB->req.MaxMpxCount = cpu_to_le16(server->maxReq); in cifs_ssetup_hdr()521 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()532 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()535 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()539 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()543 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()1283 SESSION_SETUP_ANDX *pSMB; in sess_auth_ntlmv2() local[all …]
402 struct smb_com_lock_req *pSMB = (struct smb_com_lock_req *)buf; in is_valid_oplock_break() local410 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()411 (pSMB->hdr.Flags & SMBFLG_RESPONSE)) { in is_valid_oplock_break()442 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()444 if (pSMB->hdr.Flags & SMBFLG_RESPONSE) { in is_valid_oplock_break()450 le32_to_cpu(pSMB->hdr.Status.CifsError)) { in is_valid_oplock_break()454 le16_to_cpu(pSMB->hdr.Status.DosError.Error)) { in is_valid_oplock_break()460 if (pSMB->hdr.WordCount != 8) in is_valid_oplock_break()464 pSMB->LockType, pSMB->OplockLevel); in is_valid_oplock_break()465 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()
214 struct smb_com_lock_req *pSMB = in cifs_verify_signature() local216 if (pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE) in cifs_verify_signature()
1461 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel() local1468 pSMB->LockType = LOCKING_ANDX_CANCEL_LOCK|LOCKING_ANDX_LARGE_FILES; in send_lock_cancel()1469 pSMB->Timeout = 0; in send_lock_cancel()1470 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()
3909 TCONX_REQ *pSMB; in CIFSTCon() local3930 pSMB = (TCONX_REQ *) smb_buffer; in CIFSTCon()3933 pSMB->AndXCommand = 0xFF; in CIFSTCon()3934 pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); in CIFSTCon()3935 bcc_ptr = &pSMB->Password[0]; in CIFSTCon()3937 pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ in CIFSTCon()3966 count = bcc_ptr - &pSMB->Password[0]; in CIFSTCon()3967 be32_add_cpu(&pSMB->hdr.smb_buf_length, count); in CIFSTCon()3968 pSMB->ByteCount = cpu_to_le16(count); in CIFSTCon()