From eaced2e909b58ce5b83998e6bde9750985f7a99d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Jun 2011 12:01:10 +0200 Subject: s3-librpc: Add dcerpc_binding_vector_add_port(). --- source3/librpc/rpc/dcerpc_ep.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/librpc/rpc/dcerpc_ep.h') diff --git a/source3/librpc/rpc/dcerpc_ep.h b/source3/librpc/rpc/dcerpc_ep.h index b8ea7abeb4..9375589c68 100644 --- a/source3/librpc/rpc/dcerpc_ep.h +++ b/source3/librpc/rpc/dcerpc_ep.h @@ -50,6 +50,24 @@ NTSTATUS dcerpc_binding_vector_new(TALLOC_CTX *mem_ctx, NTSTATUS dcerpc_binding_vector_add_np_default(const struct ndr_interface_table *iface, struct dcerpc_binding_vector *bvec); +/** + * @brief Add a tcpip port to a binding vector. + * + * @param[in] iface The rpc interface to add. + * + * @param[in] bvec The binding vector to add the intface, host and port. + * + * @param[in] host The ip address of the network inteface bound. + * + * @param[in] port The port bound. + * + * @return An NTSTATUS error code. + */ +NTSTATUS dcerpc_binding_vector_add_port(const struct ndr_interface_table *iface, + struct dcerpc_binding_vector *bvec, + const char *host, + uint16_t port); + NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, const struct ndr_interface_table *iface, uint16_t port, -- cgit