Lines Matching defs:shdr
221 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base;
228 ses = smb2_find_smb_ses(server, shdr->SessionId);
235 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
288 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
539 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base;
546 rc = smb2_get_sign_key(shdr->SessionId, server, key);
562 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
603 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
616 struct smb2_sync_hdr *shdr;
621 shdr = (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base;
622 ssr = (struct smb2_sess_setup_req *)shdr;
624 is_binding = shdr->Command == SMB2_SESSION_SETUP &&
626 is_signed = shdr->Flags & SMB2_FLAGS_SIGNED;
633 strncpy(shdr->Signature, "BSRSPYL", 8);
647 struct smb2_sync_hdr *shdr =
650 if ((shdr->Command == SMB2_NEGOTIATE) ||
651 (shdr->Command == SMB2_SESSION_SETUP) ||
652 (shdr->Command == SMB2_OPLOCK_BREAK) ||
663 if (memcmp(shdr->Signature, "BSRSPYL ", 8) == 0)
665 shdr->Command);
671 memcpy(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE);
673 memset(shdr->Signature, 0, SMB2_SIGNATURE_SIZE);
680 if (memcmp(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE)) {
682 shdr->Command, shdr->MessageId);
694 struct smb2_sync_hdr *shdr)
696 unsigned int i, num = le16_to_cpu(shdr->CreditCharge);
698 shdr->MessageId = get_next_mid64(server);
705 smb2_mid_entry_alloc(const struct smb2_sync_hdr *shdr,
709 unsigned int credits = le16_to_cpu(shdr->CreditCharge);
719 temp->mid = le64_to_cpu(shdr->MessageId);
722 temp->command = shdr->Command; /* Always LE */
737 trace_smb3_cmd_enter(shdr->TreeId, shdr->SessionId,
738 le16_to_cpu(shdr->Command), temp->mid);
744 struct smb2_sync_hdr *shdr, struct mid_q_entry **mid)
755 shdr->Command != SMB2_NEGOTIATE)
759 if ((shdr->Command != SMB2_SESSION_SETUP) &&
760 (shdr->Command != SMB2_NEGOTIATE))
766 if (shdr->Command != SMB2_LOGOFF)
771 *mid = smb2_mid_entry_alloc(shdr, server);
812 struct smb2_sync_hdr *shdr =
816 smb2_seq_num_into_buf(server, shdr);
818 rc = smb2_get_mid_entry(ses, server, shdr, &mid);
820 revert_current_mid_from_hdr(server, shdr);
826 revert_current_mid_from_hdr(server, shdr);
838 struct smb2_sync_hdr *shdr =
843 shdr->Command != SMB2_NEGOTIATE)
846 smb2_seq_num_into_buf(server, shdr);
848 mid = smb2_mid_entry_alloc(shdr, server);
850 revert_current_mid_from_hdr(server, shdr);
856 revert_current_mid_from_hdr(server, shdr);