summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-13 02:02:17 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-13 02:02:17 +0000
commitb05a2aad5434b188b624db97fb53dc67534a24c6 (patch)
tree3c95ceee94fc49eb08d62ed59559eeadbfb62b72
parente063ea70ad05d9a8cc927ddbcf61aa3b4ea04ade (diff)
downloadsamba-b05a2aad5434b188b624db97fb53dc67534a24c6.tar.gz
samba-b05a2aad5434b188b624db97fb53dc67534a24c6.tar.bz2
samba-b05a2aad5434b188b624db97fb53dc67534a24c6.zip
add support for 32 bit pid using the PIDHIGH field. This allows the
test suite to see if it is supported. w2k3 doesn't seem to support it. (This used to be commit c946be06a49e9a187045f2372ef7c1b987eaf6e5)
-rw-r--r--source4/include/cli_context.h2
-rw-r--r--source4/libcli/raw/rawrequest.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/include/cli_context.h b/source4/include/cli_context.h
index 184327e7d3..6e2da7b7f5 100644
--- a/source4/include/cli_context.h
+++ b/source4/include/cli_context.h
@@ -180,7 +180,7 @@ struct cli_session {
uint16 vuid;
/* default pid for this session */
- uint16 pid;
+ uint32 pid;
};
/*
diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c
index 9c2b2c7367..52349d415c 100644
--- a/source4/libcli/raw/rawrequest.c
+++ b/source4/libcli/raw/rawrequest.c
@@ -176,7 +176,8 @@ struct cli_request *cli_request_setup_session(struct cli_session *session,
}
SSVAL(req->out.hdr, HDR_FLG2, flags2);
- SSVAL(req->out.hdr, HDR_PID, session->pid);
+ SSVAL(req->out.hdr, HDR_PID, session->pid & 0xFFFF);
+ SSVAL(req->out.hdr, HDR_PIDHIGH, session->pid >> 16);
SSVAL(req->out.hdr, HDR_UID, session->vuid);
return req;