summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-10 19:59:37 +0200
committerGünther Deschner <gd@samba.org>2009-09-11 00:26:24 +0200
commit393a1f594d5f03a51448cdc465f92c599a93904c (patch)
tree8b72302c1b755b56f9ccbe93a3dbb0c27bf88db2 /source3
parentbda70613347c96d328c1d8899ae38057709e4151 (diff)
downloadsamba-393a1f594d5f03a51448cdc465f92c599a93904c.tar.gz
samba-393a1f594d5f03a51448cdc465f92c599a93904c.tar.bz2
samba-393a1f594d5f03a51448cdc465f92c599a93904c.zip
s3-rpc_client: add enum dcerpc_transport_t to rpc_cli_transport struct.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/include/client.h2
-rw-r--r--source3/rpc_client/cli_pipe.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 203198fed8..5b64b9be3a 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -68,6 +68,8 @@ struct cli_pipe_auth_data {
struct rpc_cli_transport {
+ enum dcerpc_transport_t transport;
+
/**
* Trigger an async read from the server. May return a short read.
*/
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 82f6b105b7..16fe9daca1 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3207,6 +3207,8 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
goto fail;
}
+ result->transport->transport = NCACN_IP_TCP;
+
*presult = result;
return NT_STATUS_OK;
@@ -3427,6 +3429,8 @@ NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
goto fail;
}
+ result->transport->transport = NCALRPC;
+
*presult = result;
return NT_STATUS_OK;
@@ -3501,6 +3505,8 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
return status;
}
+ result->transport->transport = NCACN_NP;
+
DLIST_ADD(cli->pipe_list, result);
talloc_set_destructor(result, rpc_pipe_client_np_destructor);
@@ -3561,6 +3567,8 @@ NTSTATUS rpc_pipe_open_local(TALLOC_CTX *mem_ctx,
return status;
}
+ result->transport->transport = NCACN_INTERNAL;
+
*presult = result;
return NT_STATUS_OK;
}