Home
last modified time | relevance | path

Searched refs:pSMB (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/fs/cifs/
Dcifssmb.c375 static int validate_t2(struct smb_t2_rsp *pSMB) in validate_t2() argument
380 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() local
607 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
[all …]
Dsess.c312 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument
321 pSMB->req.AndXCommand = 0xFF; in cifs_ssetup_hdr()
322 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()
325 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()
326 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()
337 pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; in cifs_ssetup_hdr()
340 pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE; in cifs_ssetup_hdr()
344 pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS; in cifs_ssetup_hdr()
348 pSMB->req.hdr.Flags2 |= SMBFLG2_DFS; in cifs_ssetup_hdr()
974 SESSION_SETUP_ANDX *pSMB; in sess_auth_lanman() local
[all …]
Dmisc.c406 struct smb_com_lock_req *pSMB = (struct smb_com_lock_req *)buf; in is_valid_oplock_break() local
414 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()
415 (pSMB->hdr.Flags & SMBFLG_RESPONSE)) { in is_valid_oplock_break()
446 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()
448 if (pSMB->hdr.Flags & SMBFLG_RESPONSE) { in is_valid_oplock_break()
454 le32_to_cpu(pSMB->hdr.Status.CifsError)) { in is_valid_oplock_break()
458 le16_to_cpu(pSMB->hdr.Status.DosError.Error)) { in is_valid_oplock_break()
464 if (pSMB->hdr.WordCount != 8) in is_valid_oplock_break()
468 pSMB->LockType, pSMB->OplockLevel); in is_valid_oplock_break()
469 if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) in is_valid_oplock_break()
[all …]
Dsmb1ops.c239 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2() local
244 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()
Dtransport.c1423 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel() local
1430 pSMB->LockType = LOCKING_ANDX_CANCEL_LOCK|LOCKING_ANDX_LARGE_FILES; in send_lock_cancel()
1431 pSMB->Timeout = 0; in send_lock_cancel()
1432 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()
Dcifsencrypt.c226 struct smb_com_lock_req *pSMB = in cifs_verify_signature() local
228 if (pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE) in cifs_verify_signature()
Dconnect.c4825 TCONX_REQ *pSMB; in CIFSTCon() local
4846 pSMB = (TCONX_REQ *) smb_buffer; in CIFSTCon()
4849 pSMB->AndXCommand = 0xFF; in CIFSTCon()
4850 pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); in CIFSTCon()
4851 bcc_ptr = &pSMB->Password[0]; in CIFSTCon()
4853 pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ in CIFSTCon()
4858 pSMB->PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); in CIFSTCon()
4915 count = bcc_ptr - &pSMB->Password[0]; in CIFSTCon()
4916 be32_add_cpu(&pSMB->hdr.smb_buf_length, count); in CIFSTCon()
4917 pSMB->ByteCount = cpu_to_le16(count); in CIFSTCon()