| /linux/fs/smb/client/ |
| H A D | smb1pdu.h | 371 struct smb_hdr hdr; /* wct = 17 */ 428 struct smb_hdr hdr; /* wct = 12 */ 447 struct smb_hdr hdr; /* wct = 13 */ 470 struct smb_hdr hdr; /* wct = 4 */ 485 struct smb_hdr hdr; /* wct = 10 */ 504 struct smb_hdr hdr; /* wct = 3 */ 569 struct smb_hdr hdr; /* wct = 4 */ 582 struct smb_hdr hdr; /* wct = 3 , not extended response */ 593 struct smb_hdr hdr; /* wct = 7, extended response */ 635 struct smb_hdr hdr; [all …]
|
| H A D | smb1transport.c | 37 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 D | smb1misc.c | 17 header_assemble(struct smb_hdr *buffer, char smb_command, in header_assemble() 26 in_len = (2 * word_count) + sizeof(struct smb_hdr) + in header_assemble() 68 struct smb_hdr *buf = (struct smb_hdr *)buffer; in is_valid_oplock_break() 186 struct smb_hdr *ptr = buf; in smbCalcSize() 187 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
|
| H A D | smb1encrypt.c | 53 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 D | cifssmb.c | 243 in_len = header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init() 257 struct smb_hdr *buffer; in small_smb_init_no_tc() 263 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc() 297 in_len = header_assemble((struct smb_hdr *)*request_buf, smb_command, tcon, in __smb_init() 471 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in_len, in CIFSSMBNegotiate() 472 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate() 545 struct smb_hdr *smb_buffer; in CIFSTCon() 546 struct smb_hdr *smb_buffer_response; in CIFSTCon() 680 struct smb_hdr *smb_buffer; in CIFSSMBTDis() 897 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in_len, in CIFSPOSIXDelFile() [all …]
|
| H A D | smb1proto.h | 243 unsigned int header_assemble(struct smb_hdr *buffer, char smb_command, 281 struct smb_hdr *in_buf, unsigned int in_len, 282 struct smb_hdr *out_buf, int *pbytes_returned, 291 get_mid(const struct smb_hdr *smb) in get_mid() 297 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid() 307 BCC(struct smb_hdr *smb) in BCC() 317 get_bcc(struct smb_hdr *hdr) in get_bcc() 326 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc()
|
| H A D | smb1session.c | 316 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 D | smb1ops.c | 148 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel() 159 iov[0].iov_len = sizeof(struct smb_hdr) + 2; in send_nt_cancel() 195 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_lock_cancel() 252 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid() 1351 struct smb_hdr *shdr = (struct smb_hdr *)buf; in cifs_is_network_name_deleted() 1484 .header_size = sizeof(struct smb_hdr),
|
| H A D | smb1debug.c | 15 struct smb_hdr *smb = buf; in cifs_dump_detail()
|
| H A D | smb1maperror.c | 707 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() 796 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error()
|
| H A D | file.c | 1825 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks() 1830 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks() 1832 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks() 1834 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks() 2203 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range() 2206 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range() 2208 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range() 2210 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
|
| /linux/fs/smb/common/ |
| H A D | smb1pdu.h | 20 struct smb_hdr { struct 51 struct smb_hdr hdr; /* wct = 0 */ argument
|
| /linux/fs/smb/server/ |
| H A D | smb_common.c | 162 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 D | smb_common.h | 88 struct smb_hdr hdr; /* wct = 17 */
|
| H A D | connection.c | 356 #define SMB1_MIN_SUPPORTED_PDU_SIZE (sizeof(struct smb_hdr) + 2)
|
| H A D | server.c | 95 struct smb_hdr *rsp_hdr; in check_conn_state()
|