mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3: libsmb: Add uint16_t addtional_flags2 to cli_smb_req_create().
Not yet used. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12165 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
committed by
Uri Simchoni
parent
76bbc4c0c3
commit
79c8b75671
@ -27,6 +27,7 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
|
|||||||
struct cli_state *cli,
|
struct cli_state *cli,
|
||||||
uint8_t smb_command,
|
uint8_t smb_command,
|
||||||
uint8_t additional_flags,
|
uint8_t additional_flags,
|
||||||
|
uint16_t additional_flags2,
|
||||||
uint8_t wct, uint16_t *vwv,
|
uint8_t wct, uint16_t *vwv,
|
||||||
int iov_count,
|
int iov_count,
|
||||||
struct iovec *bytes_iov);
|
struct iovec *bytes_iov);
|
||||||
|
@ -54,13 +54,13 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
|
|||||||
struct cli_state *cli,
|
struct cli_state *cli,
|
||||||
uint8_t smb_command,
|
uint8_t smb_command,
|
||||||
uint8_t additional_flags,
|
uint8_t additional_flags,
|
||||||
|
uint16_t additional_flags2,
|
||||||
uint8_t wct, uint16_t *vwv,
|
uint8_t wct, uint16_t *vwv,
|
||||||
int iov_count,
|
int iov_count,
|
||||||
struct iovec *bytes_iov)
|
struct iovec *bytes_iov)
|
||||||
{
|
{
|
||||||
struct cli_smb_req_state *state;
|
struct cli_smb_req_state *state;
|
||||||
uint8_t clear_flags = 0;
|
uint8_t clear_flags = 0;
|
||||||
uint16_t additional_flags2 = 0;
|
|
||||||
uint16_t clear_flags2 = 0;
|
uint16_t clear_flags2 = 0;
|
||||||
|
|
||||||
state = talloc_zero(mem_ctx, struct cli_smb_req_state);
|
state = talloc_zero(mem_ctx, struct cli_smb_req_state);
|
||||||
|
@ -386,8 +386,8 @@ struct tevent_req *cli_session_setup_guest_create(TALLOC_CTX *mem_ctx,
|
|||||||
state->bytes.iov_base = (void *)bytes;
|
state->bytes.iov_base = (void *)bytes;
|
||||||
state->bytes.iov_len = talloc_get_size(bytes);
|
state->bytes.iov_len = talloc_get_size(bytes);
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBsesssetupX, 0, 13, vwv,
|
subreq = cli_smb_req_create(state, ev, cli, SMBsesssetupX, 0, 0, 13,
|
||||||
1, &state->bytes);
|
vwv, 1, &state->bytes);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2549,7 +2549,7 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx,
|
|||||||
state->bytes.iov_base = (void *)bytes;
|
state->bytes.iov_base = (void *)bytes;
|
||||||
state->bytes.iov_len = talloc_get_size(bytes);
|
state->bytes.iov_len = talloc_get_size(bytes);
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBtconX, 0, 4, vwv,
|
subreq = cli_smb_req_create(state, ev, cli, SMBtconX, 0, 0, 4, vwv,
|
||||||
1, &state->bytes);
|
1, &state->bytes);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
|
@ -2464,7 +2464,7 @@ struct tevent_req *cli_openx_create(TALLOC_CTX *mem_ctx,
|
|||||||
state->bytes.iov_len = talloc_get_size(bytes);
|
state->bytes.iov_len = talloc_get_size(bytes);
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBopenX, additional_flags,
|
subreq = cli_smb_req_create(state, ev, cli, SMBopenX, additional_flags,
|
||||||
15, state->vwv, 1, &state->bytes);
|
0, 15, state->vwv, 1, &state->bytes);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2726,8 +2726,8 @@ struct tevent_req *cli_close_create(TALLOC_CTX *mem_ctx,
|
|||||||
SSVAL(state->vwv+0, 0, fnum);
|
SSVAL(state->vwv+0, 0, fnum);
|
||||||
SIVALS(state->vwv+1, 0, -1);
|
SIVALS(state->vwv+1, 0, -1);
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBclose, 0, 3, state->vwv,
|
subreq = cli_smb_req_create(state, ev, cli, SMBclose, 0, 0,
|
||||||
0, NULL);
|
3, state->vwv, 0, NULL);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -162,7 +162,7 @@ struct tevent_req *cli_read_andx_create(TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, wct,
|
subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, 0, wct,
|
||||||
state->vwv, 0, NULL);
|
state->vwv, 0, NULL);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
@ -863,7 +863,7 @@ struct tevent_req *cli_write_andx_create(TALLOC_CTX *mem_ctx,
|
|||||||
state->iov[1].iov_base = discard_const_p(void, buf);
|
state->iov[1].iov_base = discard_const_p(void, buf);
|
||||||
state->iov[1].iov_len = state->size;
|
state->iov[1].iov_len = state->size;
|
||||||
|
|
||||||
subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, wct, vwv,
|
subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, 0, wct, vwv,
|
||||||
2, state->iov);
|
2, state->iov);
|
||||||
if (tevent_req_nomem(subreq, req)) {
|
if (tevent_req_nomem(subreq, req)) {
|
||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
|
Reference in New Issue
Block a user