Lines Matching defs:shdr

238 	struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base;
243 ses = smb2_find_smb_ses(server, le64_to_cpu(shdr->SessionId));
250 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
301 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
568 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base;
573 rc = smb2_get_sign_key(le64_to_cpu(shdr->SessionId), server, key);
588 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
629 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
642 struct smb2_hdr *shdr;
647 shdr = (struct smb2_hdr *)rqst->rq_iov[0].iov_base;
648 ssr = (struct smb2_sess_setup_req *)shdr;
650 is_binding = shdr->Command == SMB2_SESSION_SETUP &&
652 is_signed = shdr->Flags & SMB2_FLAGS_SIGNED;
664 strscpy(shdr->Signature, "BSRSPYL");
678 struct smb2_hdr *shdr =
681 if ((shdr->Command == SMB2_NEGOTIATE) ||
682 (shdr->Command == SMB2_SESSION_SETUP) ||
683 (shdr->Command == SMB2_OPLOCK_BREAK) ||
694 if (memcmp(shdr->Signature, "BSRSPYL ", 8) == 0)
696 shdr->Command);
702 memcpy(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE);
704 memset(shdr->Signature, 0, SMB2_SIGNATURE_SIZE);
711 if (memcmp(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE)) {
713 shdr->Command, shdr->MessageId);
725 struct smb2_hdr *shdr)
727 unsigned int i, num = le16_to_cpu(shdr->CreditCharge);
729 shdr->MessageId = get_next_mid64(server);
736 smb2_mid_entry_alloc(const struct smb2_hdr *shdr,
740 unsigned int credits = le16_to_cpu(shdr->CreditCharge);
750 temp->mid = le64_to_cpu(shdr->MessageId);
753 temp->command = shdr->Command; /* Always LE */
768 trace_smb3_cmd_enter(le32_to_cpu(shdr->Id.SyncId.TreeId),
769 le64_to_cpu(shdr->SessionId),
770 le16_to_cpu(shdr->Command), temp->mid);
776 struct smb2_hdr *shdr, struct mid_q_entry **mid)
791 shdr->Command != SMB2_NEGOTIATE) {
799 if ((shdr->Command != SMB2_SESSION_SETUP) &&
800 (shdr->Command != SMB2_NEGOTIATE)) {
808 if (shdr->Command != SMB2_LOGOFF) {
816 *mid = smb2_mid_entry_alloc(shdr, server);
857 struct smb2_hdr *shdr =
861 smb2_seq_num_into_buf(server, shdr);
863 rc = smb2_get_mid_entry(ses, server, shdr, &mid);
865 revert_current_mid_from_hdr(server, shdr);
871 revert_current_mid_from_hdr(server, shdr);
883 struct smb2_hdr *shdr =
889 shdr->Command != SMB2_NEGOTIATE) {
895 smb2_seq_num_into_buf(server, shdr);
897 mid = smb2_mid_entry_alloc(shdr, server);
899 revert_current_mid_from_hdr(server, shdr);
905 revert_current_mid_from_hdr(server, shdr);