Home
last modified time | relevance | path

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

/linux-6.1.9/fs/cifs/
Dcifspdu.h380 struct smb_hdr { struct
414 BCC(struct smb_hdr *smb) in BCC()
424 get_bcc(struct smb_hdr *hdr) in get_bcc()
433 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc()
484 struct smb_hdr hdr; /* wct = 0 */
496 struct smb_hdr hdr; /* wct = 17 */
553 struct smb_hdr hdr; /* wct = 12 */
572 struct smb_hdr hdr; /* wct = 13 */
595 struct smb_hdr hdr; /* wct = 4 */
610 struct smb_hdr hdr; /* wct = 10 */
[all …]
Dcifssmb.c254 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
268 struct smb_hdr *buffer; in small_smb_init_no_tc()
274 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
306 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
474 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate()
475 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
541 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
754 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
755 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
799 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
[all …]
Dmisc.c154 struct smb_hdr *
157 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
196 struct smb_hdr *
199 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
242 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
251 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
292 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
317 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
324 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
325 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
[all …]
Dcifsproto.h26 extern struct smb_hdr *cifs_buf_get(void);
28 extern struct smb_hdr *cifs_small_buf_get(void);
31 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
106 struct smb_hdr * /* input */ ,
107 struct smb_hdr * /* out */ ,
127 struct smb_hdr *in_buf ,
128 struct smb_hdr *out_buf,
161 extern void header_assemble(struct smb_hdr *, char /* command */ ,
507 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
Dtransport.c42 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid()
486 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
719 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
769 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
983 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
1337 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1456 struct smb_hdr *in_buf, in send_lock_cancel()
1457 struct smb_hdr *out_buf) in send_lock_cancel()
1478 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
Dcifsencrypt.c132 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
180 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb()
201 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
Dsmb1ops.c33 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
36 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
92 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
246 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
287 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2()
1264 .header_size = sizeof(struct smb_hdr),
Dsess.c1178 struct smb_hdr *smb_buf; in sess_alloc_buffer()
1260 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1282 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
1345 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1392 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1471 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1574 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
1621 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1680 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate()
1698 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
[all …]
Dnetmisc.c812 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error()
887 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error()
914 struct smb_hdr *ptr = buf; in smbCalcSize()
915 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
Dfile.c1339 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1344 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1346 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1348 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1693 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1696 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
1698 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1700 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
Dcifsglob.h871 get_mid(const struct smb_hdr *smb) in get_mid()
877 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
Dconnect.c2848 struct smb_hdr *smb_buf; in ip_rfc1001_connect()
2886 smb_buf = (struct smb_hdr *)ses_init_buf; in ip_rfc1001_connect()
3907 struct smb_hdr *smb_buffer; in CIFSTCon()
3908 struct smb_hdr *smb_buffer_response; in CIFSTCon()
Dcifs_debug.c39 struct smb_hdr *smb = buf; in cifs_dump_detail()
/linux-6.1.9/fs/ksmbd/
Dsmb_common.h163 struct smb_hdr { struct
194 struct smb_hdr hdr; /* wct = 0 */ argument
200 struct smb_hdr hdr; /* wct = 17 */
Dsmb_common.c138 struct smb_hdr *hdr; in ksmbd_verify_smb_message()
265 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; in ksmbd_negotiate_smb_dialect()
Dserver.c94 struct smb_hdr *rsp_hdr; in check_conn_state()