Home
last modified time | relevance | path

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

/linux-6.15/fs/smb/client/
H A Dcifspdu.h420 struct smb_hdr { struct
454 BCC(struct smb_hdr *smb) in BCC()
464 get_bcc(struct smb_hdr *hdr) in get_bcc()
524 struct smb_hdr hdr; /* wct = 0 */
729 struct smb_hdr hdr; /* wct = 4 */
795 struct smb_hdr hdr;
802 struct smb_hdr hdr;
809 struct smb_hdr hdr; /* wct = 2 */
1563 struct smb_hdr hdr;
1587 struct smb_hdr hdr;
[all …]
H A Dcifssmb.c255 struct smb_hdr *buffer; in small_smb_init_no_tc()
261 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
465 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
531 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
1136 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1260 (struct smb_hdr *)rsp, &bytes_returned, 0); in CIFS_open()
2026 (struct smb_hdr *) pSMB, &bytes_returned); in CIFSSMBLock()
2113 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2774 (struct smb_hdr *)io_rsp, &io_rsp_len, 0); in cifs_query_reparse_point()
5265 offsetof(struct smb_hdr, Protocol) + offset; in CIFSSMBSetFileInfo()
[all …]
H A Dmisc.c174 struct smb_hdr *
177 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
216 struct smb_hdr *
219 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
271 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
312 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
337 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
344 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
356 if (tmp[sizeof(struct smb_hdr)] == 0) { in checkSMB()
364 tmp[sizeof(struct smb_hdr)+1] = 0; in checkSMB()
[all …]
H A Dcifsproto.h27 extern struct smb_hdr *cifs_buf_get(void);
29 extern struct smb_hdr *cifs_small_buf_get(void);
32 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
114 struct smb_hdr * /* input */ ,
115 struct smb_hdr * /* out */ ,
135 struct smb_hdr *in_buf,
136 struct smb_hdr *out_buf,
175 extern void header_assemble(struct smb_hdr *, char /* command */ ,
546 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
H A Dtransport.c45 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid()
460 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
693 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
744 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
962 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
1348 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1466 struct smb_hdr *in_buf, in send_lock_cancel()
1467 struct smb_hdr *out_buf) in send_lock_cancel()
1488 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
H A Dsmb1ops.c35 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
38 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
94 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
248 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
289 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2()
1282 struct smb_hdr *shdr = (struct smb_hdr *)buf; in cifs_is_network_name_deleted()
1415 .header_size = sizeof(struct smb_hdr),
H A Dcifsencrypt.c146 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
194 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb()
215 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
H A Dsess.c1321 struct smb_hdr *smb_buf; in sess_alloc_buffer()
1403 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1425 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
1488 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1535 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1614 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1717 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
1764 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1823 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate()
1841 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
[all …]
H A Dnetmisc.c811 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error()
895 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error()
922 struct smb_hdr *ptr = buf; in smbCalcSize()
923 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
H A Dfile.c1759 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1764 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1766 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1768 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
2137 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
2140 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
2142 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
2144 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
H A Dcifsglob.h976 get_mid(const struct smb_hdr *smb) in get_mid()
982 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
H A Dcifs_debug.c41 struct smb_hdr *smb = buf; in cifs_dump_detail()
H A Dconnect.c3988 struct smb_hdr *smb_buffer; in CIFSTCon()
3989 struct smb_hdr *smb_buffer_response; in CIFSTCon()
/linux-6.15/fs/smb/server/
H A Dsmb_common.c138 struct smb_hdr *hdr; in ksmbd_verify_smb_message()
281 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; in ksmbd_negotiate_smb_dialect()
323 struct smb_hdr *rsp_hdr = (struct smb_hdr *)work->response_buf; in init_smb1_rsp_hdr()
324 struct smb_hdr *rcv_hdr = (struct smb_hdr *)work->request_buf; in init_smb1_rsp_hdr()
417 proto = *(__le32 *)((struct smb_hdr *)conn->request_buf)->Protocol; in ksmbd_init_smb_server()
H A Dsmb_common.h172 struct smb_hdr { struct
203 struct smb_hdr hdr; /* wct = 0 */ argument
209 struct smb_hdr hdr; /* wct = 17 */
H A Dconnection.c300 #define SMB1_MIN_SUPPORTED_HEADER_SIZE (sizeof(struct smb_hdr))
H A Dserver.c94 struct smb_hdr *rsp_hdr; in check_conn_state()