Home
last modified time | relevance | path

Searched refs:smb_hdr (Results 1 – 9 of 9) sorted by relevance

/linux/fs/smb/client/
H A Dsmb1transport.c37 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid()
72 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
108 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
195 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
225 struct smb_hdr *in_buf, unsigned int in_len, in SendReceive()
226 struct smb_hdr *out_buf, int *pbytes_returned, const int flags) in SendReceive()
282 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
323 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr, unsigned int *pdu_len) in coalesce_t2()
445 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
479 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
[all …]
H A Dsmb1encrypt.c53 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
94 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
H A Dsmb1session.c316 struct smb_hdr *smb_buf; in sess_alloc_buffer()
399 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
421 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
484 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
531 struct smb_hdr *smb_buf; in sess_auth_kerberos()
610 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
713 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
760 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
819 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate()
837 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
[all …]
H A Dsmb1ops.c145 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
156 iov[0].iov_len = sizeof(struct smb_hdr) + 2; in send_nt_cancel()
192 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_lock_cancel()
249 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
1348 struct smb_hdr *shdr = (struct smb_hdr *)buf; in cifs_is_network_name_deleted()
1481 .header_size = sizeof(struct smb_hdr),
H A Dfile.c1851 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1856 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1858 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1860 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
2229 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
2232 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
2234 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
2236 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
/linux/fs/smb/common/
H A Dsmb1pdu.h20 struct smb_hdr { struct
51 struct smb_hdr hdr; /* wct = 0 */ argument
/linux/fs/smb/server/
H A Dsmb_common.c162 struct smb_hdr *hdr; in ksmbd_verify_smb_message()
346 struct smb_hdr *rsp_hdr = (struct smb_hdr *)smb_get_msg(work->response_buf); in init_smb1_rsp_hdr()
347 struct smb_hdr *rcv_hdr = (struct smb_hdr *)smb_get_msg(work->request_buf); in init_smb1_rsp_hdr()
438 struct smb_hdr *rcv_hdr = (struct smb_hdr *)smb_get_msg(conn->request_buf); in ksmbd_init_smb_server()
H A Dserver.c95 struct smb_hdr *rsp_hdr; in check_conn_state()
H A Dconnection.c441 #define SMB1_MIN_SUPPORTED_PDU_SIZE (sizeof(struct smb_hdr) + 2)