summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-25 10:58:34 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-25 12:15:05 +0200
commit56aa419d87e8f0a82ebe2110b128fa512cd1e2c6 (patch)
treec815483cfe369cd383c6bc59eaceee090c09c072 /libcli/smb
parent7de4ae7f9fbf642899afd8c89d0b3af72155e022 (diff)
downloadsamba-56aa419d87e8f0a82ebe2110b128fa512cd1e2c6.tar.gz
libcli/smb: there's no PID field in the SMB2/3 header anymore
It's a reserved field... metze
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/smb2cli_close.c1
-rw-r--r--libcli/smb/smb2cli_create.c1
-rw-r--r--libcli/smb/smb2cli_flush.c1
-rw-r--r--libcli/smb/smb2cli_ioctl.c1
-rw-r--r--libcli/smb/smb2cli_query_directory.c1
-rw-r--r--libcli/smb/smb2cli_query_info.c1
-rw-r--r--libcli/smb/smb2cli_read.c1
-rw-r--r--libcli/smb/smb2cli_session.c2
-rw-r--r--libcli/smb/smb2cli_set_info.c1
-rw-r--r--libcli/smb/smb2cli_write.c1
-rw-r--r--libcli/smb/smbXcli_base.c12
-rw-r--r--libcli/smb/smbXcli_base.h2
12 files changed, 4 insertions, 21 deletions
diff --git a/libcli/smb/smb2cli_close.c b/libcli/smb/smb2cli_close.c
index 05877702baa..fbeee5514c0 100644
--- a/libcli/smb/smb2cli_close.c
+++ b/libcli/smb/smb2cli_close.c
@@ -57,7 +57,6 @@ struct tevent_req *smb2cli_close_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_CLOSE,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_create.c b/libcli/smb/smb2cli_create.c
index 350c2e50815..4d264efb575 100644
--- a/libcli/smb/smb2cli_create.c
+++ b/libcli/smb/smb2cli_create.c
@@ -140,7 +140,6 @@ struct tevent_req *smb2cli_create_send(
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_CREATE,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_flush.c b/libcli/smb/smb2cli_flush.c
index 60ae04da401..a280e15e137 100644
--- a/libcli/smb/smb2cli_flush.c
+++ b/libcli/smb/smb2cli_flush.c
@@ -55,7 +55,6 @@ struct tevent_req *smb2cli_flush_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_FLUSH,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_ioctl.c b/libcli/smb/smb2cli_ioctl.c
index 751f26dacff..687c9d5110b 100644
--- a/libcli/smb/smb2cli_ioctl.c
+++ b/libcli/smb/smb2cli_ioctl.c
@@ -136,7 +136,6 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_IOCTL,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_query_directory.c b/libcli/smb/smb2cli_query_directory.c
index 781efbd0664..327837835a8 100644
--- a/libcli/smb/smb2cli_query_directory.c
+++ b/libcli/smb/smb2cli_query_directory.c
@@ -90,7 +90,6 @@ struct tevent_req *smb2cli_query_directory_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_FIND,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_query_info.c b/libcli/smb/smb2cli_query_info.c
index b1664c15854..80cec9c3cc9 100644
--- a/libcli/smb/smb2cli_query_info.c
+++ b/libcli/smb/smb2cli_query_info.c
@@ -93,7 +93,6 @@ struct tevent_req *smb2cli_query_info_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_GETINFO,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_read.c b/libcli/smb/smb2cli_read.c
index 35298876bd4..e808b0ca1ed 100644
--- a/libcli/smb/smb2cli_read.c
+++ b/libcli/smb/smb2cli_read.c
@@ -69,7 +69,6 @@ struct tevent_req *smb2cli_read_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_READ,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_session.c b/libcli/smb/smb2cli_session.c
index 946e02cd482..d34fbd4fe62 100644
--- a/libcli/smb/smb2cli_session.c
+++ b/libcli/smb/smb2cli_session.c
@@ -99,7 +99,6 @@ struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx,
conn, SMB2_OP_SESSSETUP,
0, 0, /* flags */
timeout_msec,
- 0xFEFF,
NULL, /* tcon */
session,
state->fixed, sizeof(state->fixed),
@@ -256,7 +255,6 @@ struct tevent_req *smb2cli_logoff_send(TALLOC_CTX *mem_ctx,
conn, SMB2_OP_LOGOFF,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
NULL, /* tcon */
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_set_info.c b/libcli/smb/smb2cli_set_info.c
index e7464e65e8a..41fe83e211e 100644
--- a/libcli/smb/smb2cli_set_info.c
+++ b/libcli/smb/smb2cli_set_info.c
@@ -85,7 +85,6 @@ struct tevent_req *smb2cli_set_info_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_SETINFO,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smb2cli_write.c b/libcli/smb/smb2cli_write.c
index 60182c6c138..a149924e573 100644
--- a/libcli/smb/smb2cli_write.c
+++ b/libcli/smb/smb2cli_write.c
@@ -78,7 +78,6 @@ struct tevent_req *smb2cli_write_send(TALLOC_CTX *mem_ctx,
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_WRITE,
0, 0, /* flags */
timeout_msec,
- 0xFEFF, /* pid */
tcon,
session,
state->fixed, sizeof(state->fixed),
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 1b1b92aa038..275dfed32c1 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -2365,7 +2365,6 @@ static bool smb2cli_req_cancel(struct tevent_req *req)
tevent_req_data(req,
struct smbXcli_req_state);
uint32_t flags = IVAL(state->smb2.hdr, SMB2_HDR_FLAGS);
- uint32_t pid = IVAL(state->smb2.hdr, SMB2_HDR_PID);
uint64_t mid = BVAL(state->smb2.hdr, SMB2_HDR_MESSAGE_ID);
uint64_t aid = BVAL(state->smb2.hdr, SMB2_HDR_ASYNC_ID);
struct smbXcli_tcon *tcon = state->tcon;
@@ -2384,7 +2383,7 @@ static bool smb2cli_req_cancel(struct tevent_req *req)
SMB2_OP_CANCEL,
flags, 0,
0, /* timeout */
- pid, tcon, session,
+ tcon, session,
fixed, fixed_len,
NULL, 0);
if (subreq == NULL) {
@@ -2397,7 +2396,6 @@ static bool smb2cli_req_cancel(struct tevent_req *req)
}
SIVAL(substate->smb2.hdr, SMB2_HDR_FLAGS, flags);
- SIVAL(substate->smb2.hdr, SMB2_HDR_PID, pid);
SBVAL(substate->smb2.hdr, SMB2_HDR_MESSAGE_ID, mid);
SBVAL(substate->smb2.hdr, SMB2_HDR_ASYNC_ID, aid);
@@ -2425,7 +2423,6 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
uint32_t additional_flags,
uint32_t clear_flags,
uint32_t timeout_msec,
- uint32_t pid,
struct smbXcli_tcon *tcon,
struct smbXcli_session *session,
const uint8_t *fixed,
@@ -2500,7 +2497,7 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
SSVAL(state->smb2.hdr, SMB2_HDR_LENGTH, SMB2_HDR_BODY);
SSVAL(state->smb2.hdr, SMB2_HDR_OPCODE, cmd);
SIVAL(state->smb2.hdr, SMB2_HDR_FLAGS, flags);
- SIVAL(state->smb2.hdr, SMB2_HDR_PID, pid);
+ SIVAL(state->smb2.hdr, SMB2_HDR_PID, 0); /* reserved */
SIVAL(state->smb2.hdr, SMB2_HDR_TID, tid);
SBVAL(state->smb2.hdr, SMB2_HDR_SESSION_ID, uid);
@@ -2799,7 +2796,6 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
uint32_t additional_flags,
uint32_t clear_flags,
uint32_t timeout_msec,
- uint32_t pid,
struct smbXcli_tcon *tcon,
struct smbXcli_session *session,
const uint8_t *fixed,
@@ -2813,7 +2809,7 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
req = smb2cli_req_create(mem_ctx, ev, conn, cmd,
additional_flags, clear_flags,
timeout_msec,
- pid, tcon, session,
+ tcon, session,
fixed, fixed_len, dyn, dyn_len);
if (req == NULL) {
return NULL;
@@ -4004,7 +4000,7 @@ static struct tevent_req *smbXcli_negprot_smb2_subreq(struct smbXcli_negprot_sta
state->conn, SMB2_OP_NEGPROT,
0, 0, /* flags */
state->timeout_msec,
- 0xFEFF, NULL, NULL, /* pid, tcon, session */
+ NULL, NULL, /* tcon, session */
state->smb2.fixed, sizeof(state->smb2.fixed),
state->smb2.dyn, dialect_count*2);
}
diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h
index 0260ab64a7a..5c524b0ec86 100644
--- a/libcli/smb/smbXcli_base.h
+++ b/libcli/smb/smbXcli_base.h
@@ -200,7 +200,6 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
uint32_t additional_flags,
uint32_t clear_flags,
uint32_t timeout_msec,
- uint32_t pid,
struct smbXcli_tcon *tcon,
struct smbXcli_session *session,
const uint8_t *fixed,
@@ -224,7 +223,6 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
uint32_t additional_flags,
uint32_t clear_flags,
uint32_t timeout_msec,
- uint32_t pid,
struct smbXcli_tcon *tcon,
struct smbXcli_session *session,
const uint8_t *fixed,