Home
last modified time | relevance | path

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

/Linux-v6.6/fs/smb/client/
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.c225 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
239 struct smb_hdr *buffer; in small_smb_init_no_tc()
245 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
277 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
445 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate()
446 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
512 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
725 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
726 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
770 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
[all …]
Dmisc.c168 struct smb_hdr *
171 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
210 struct smb_hdr *
213 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
256 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
265 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
306 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
331 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
338 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
339 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
[all …]
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 *,
111 struct smb_hdr * /* input */ ,
112 struct smb_hdr * /* out */ ,
132 struct smb_hdr *in_buf,
133 struct smb_hdr *out_buf,
166 extern void header_assemble(struct smb_hdr *, char /* command */ ,
522 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
Dtransport.c44 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid()
472 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
705 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
756 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
968 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
1349 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1467 struct smb_hdr *in_buf, in send_lock_cancel()
1468 struct smb_hdr *out_buf) in send_lock_cancel()
1489 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
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()
1273 .header_size = sizeof(struct smb_hdr),
Dsess.c1194 struct smb_hdr *smb_buf; in sess_alloc_buffer()
1276 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1298 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
1361 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1408 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1487 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1590 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
1637 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1696 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate()
1714 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
[all …]
Dcifsencrypt.c260 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
308 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb()
329 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
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.c1468 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1473 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1475 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1477 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1822 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1825 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
1827 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1829 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
Dcifsglob.h887 get_mid(const struct smb_hdr *smb) in get_mid()
893 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
Dconnect.c2927 struct smb_hdr *smb_buf = (struct smb_hdr *)&req; in ip_rfc1001_connect()
3617 struct smb_hdr *smb_buffer; in CIFSTCon()
3618 struct smb_hdr *smb_buffer_response; in CIFSTCon()
Dcifs_debug.c41 struct smb_hdr *smb = buf; in cifs_dump_detail()
/Linux-v6.6/fs/smb/server/
Dsmb_common.c138 struct smb_hdr *hdr; in ksmbd_verify_smb_message()
277 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; in ksmbd_negotiate_smb_dialect()
319 struct smb_hdr *rsp_hdr = (struct smb_hdr *)work->response_buf; in init_smb1_rsp_hdr()
320 struct smb_hdr *rcv_hdr = (struct smb_hdr *)work->request_buf; in init_smb1_rsp_hdr()
398 proto = *(__le32 *)((struct smb_hdr *)work->request_buf)->Protocol; in ksmbd_init_smb_server()
Dsmb_common.h170 struct smb_hdr { struct
201 struct smb_hdr hdr; /* wct = 0 */ argument
207 struct smb_hdr hdr; /* wct = 17 */
Dconnection.c277 #define SMB1_MIN_SUPPORTED_HEADER_SIZE (sizeof(struct smb_hdr))
Dserver.c94 struct smb_hdr *rsp_hdr; in check_conn_state()