mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
metze
This commit is contained in:
parent
51af8b9600
commit
20d43a1d30
@ -41,7 +41,7 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
|
||||
struct smbXcli_conn *conn,
|
||||
uint32_t timeout_msec,
|
||||
struct smbXcli_session *session,
|
||||
uint32_t tcon_id,
|
||||
struct smbXcli_tcon *tcon,
|
||||
uint64_t in_fid_persistent,
|
||||
uint64_t in_fid_volatile,
|
||||
uint32_t in_ctl_code,
|
||||
@ -61,6 +61,7 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
|
||||
uint32_t output_buffer_offset = 0;
|
||||
uint32_t output_buffer_length = 0;
|
||||
uint32_t pad_length = 0;
|
||||
uint32_t tcon_id = 0;
|
||||
|
||||
req = tevent_req_create(mem_ctx, &state,
|
||||
struct smb2cli_ioctl_state);
|
||||
@ -133,6 +134,10 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
|
||||
dyn_len = sizeof(state->dyn_pad);
|
||||
}
|
||||
|
||||
if (tcon) {
|
||||
tcon_id = smb2cli_tcon_current_id(tcon);
|
||||
}
|
||||
|
||||
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_IOCTL,
|
||||
0, 0, /* flags */
|
||||
timeout_msec,
|
||||
@ -281,7 +286,7 @@ NTSTATUS smb2cli_ioctl_recv(struct tevent_req *req,
|
||||
NTSTATUS smb2cli_ioctl(struct smbXcli_conn *conn,
|
||||
uint32_t timeout_msec,
|
||||
struct smbXcli_session *session,
|
||||
uint32_t tcon_id,
|
||||
struct smbXcli_tcon *tcon,
|
||||
uint64_t in_fid_persistent,
|
||||
uint64_t in_fid_volatile,
|
||||
uint32_t in_ctl_code,
|
||||
@ -311,7 +316,7 @@ NTSTATUS smb2cli_ioctl(struct smbXcli_conn *conn,
|
||||
goto fail;
|
||||
}
|
||||
req = smb2cli_ioctl_send(frame, ev, conn, timeout_msec,
|
||||
session, tcon_id,
|
||||
session, tcon,
|
||||
in_fid_persistent,
|
||||
in_fid_volatile,
|
||||
in_ctl_code,
|
||||
|
@ -532,7 +532,7 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
|
||||
struct smbXcli_conn *conn,
|
||||
uint32_t timeout_msec,
|
||||
struct smbXcli_session *session,
|
||||
uint32_t tcon_id,
|
||||
struct smbXcli_tcon *tcon,
|
||||
uint64_t in_fid_persistent,
|
||||
uint64_t in_fid_volatile,
|
||||
uint32_t in_ctl_code,
|
||||
@ -548,7 +548,7 @@ NTSTATUS smb2cli_ioctl_recv(struct tevent_req *req,
|
||||
NTSTATUS smb2cli_ioctl(struct smbXcli_conn *conn,
|
||||
uint32_t timeout_msec,
|
||||
struct smbXcli_session *session,
|
||||
uint32_t tcon_id,
|
||||
struct smbXcli_tcon *tcon,
|
||||
uint64_t in_fid_persistent,
|
||||
uint64_t in_fid_volatile,
|
||||
uint32_t in_ctl_code,
|
||||
|
@ -829,7 +829,7 @@ static void tstream_cli_np_readv_trans_start(struct tevent_req *req)
|
||||
cli_nps->cli->conn,
|
||||
cli_nps->cli->timeout,
|
||||
cli_nps->cli->smb2.session,
|
||||
cli_nps->cli->smb2.tid,
|
||||
cli_nps->cli->smb2.tcon,
|
||||
cli_nps->fid_persistent,
|
||||
cli_nps->fid_volatile,
|
||||
FSCTL_NAMED_PIPE_READ_WRITE,
|
||||
|
Loading…
Reference in New Issue
Block a user