Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Dcifspdu.h420 struct smb_hdr { struct
452 /* given a pointer to an smb_hdr, retrieve a void pointer to the ByteCount */ argument
454 BCC(struct smb_hdr *smb) in BCC()
459 /* given a pointer to an smb_hdr retrieve the pointer to the byte area */
464 get_bcc(struct smb_hdr *hdr) in get_bcc()
473 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc()
524 struct smb_hdr hdr; /* wct = 0 */
536 struct smb_hdr hdr; /* wct = 17 */
593 struct smb_hdr hdr; /* wct = 12 */
612 struct smb_hdr hd
421 smb_buf_lengthsmb_hdr global() argument
424 Protocolsmb_hdr global() argument
425 Commandsmb_hdr global() argument
426 __anon67856a69010asmb_hdr global() argument
[all...]
H A Dcifstransport.c37 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid()
73 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
88 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
124 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
211 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
270 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
388 struct smb_hdr *in_bu in send_lock_cancel()
[all...]
H A Dcifssmb.c241 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
255 struct smb_hdr *buffer; in small_smb_init_no_tc()
261 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
293 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
464 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate()
465 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
532 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
745 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
746 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
790 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSM in CIFSSMBDelFile()
[all...]
H A Dmisc.c180 struct smb_hdr *
183 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
222 struct smb_hdr *
225 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
233 /* memset(ret_buf, 0, sizeof(struct smb_hdr) + 27);*/ in cifs_small_buf_get()
268 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
277 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
318 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
351 struct smb_hdr *smb = (struct smb_hdr *)bu 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 */ ,
150 struct smb_hdr *in_buf,
151 struct smb_hdr *out_buf,
190 extern void header_assemble(struct smb_hdr *, char /* command */ ,
569 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
H A Dsmb1ops.c36 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
39 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
95 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
250 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
291 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2()
1293 struct smb_hdr *shdr = (struct smb_hdr *)bu in cifs_is_network_name_deleted()
[all...]
H A Dsess.c1334 struct smb_hdr *smb_buf; in sess_alloc_buffer()
1416 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1438 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
1501 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1548 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1627 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1730 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
1777 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1836 struct smb_hdr *smb_bu in sess_auth_rawntlmssp_authenticate()
[all...]
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 Dfile.c1767 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1772 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1774 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1776 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
2145 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
2148 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
2150 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
2152 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
H A Dcifsglob.h982 get_mid(const struct smb_hdr *smb) in get_mid()
988 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
1680 * just after the MID in struct smb_hdr). Note:
H A Dcifs_debug.c42 struct smb_hdr *smb = buf; in cifs_dump_detail()
H A Dconnect.c4004 struct smb_hdr *smb_buffer; in CIFSTCon()
4005 struct smb_hdr *smb_buffer_response; in CIFSTCon()
/linux/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 */
173 smb_buf_lengthsmb_hdr global() argument
174 Protocolsmb_hdr global() argument
175 Commandsmb_hdr global() argument
176 __anonbbf62cdd010asmb_hdr global() argument
H A Dconnection.c300 #define SMB1_MIN_SUPPORTED_HEADER_SIZE (sizeof(struct smb_hdr))