From e5e5a1110fb4092a1221512627b1f9d03ec8839c Mon Sep 17 00:00:00 2001 From: Julien Kerihuel Date: Fri, 27 Aug 2010 14:04:07 +0200 Subject: Add unique IP address binding for client connections (EPM and ncacn_ip_tcp levels) This allows for binding strings like this: ncacn_ip_tcp:host[localaddress=192.168.2.1,seal] which will force the connection to be locally bound to the specified IP address Signed-off-by: Andrew Tridgell --- source3/librpc/rpc/dcerpc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/librpc/rpc/dcerpc.h') diff --git a/source3/librpc/rpc/dcerpc.h b/source3/librpc/rpc/dcerpc.h index af20889b1e..56d6d320fd 100644 --- a/source3/librpc/rpc/dcerpc.h +++ b/source3/librpc/rpc/dcerpc.h @@ -41,6 +41,7 @@ struct dcerpc_binding { const char *target_hostname; const char *endpoint; const char **options; + const char *localaddress; uint32_t flags; uint32_t assoc_group_id; }; @@ -95,6 +96,9 @@ struct dcerpc_binding { /* use NDR64 transport */ #define DCERPC_NDR64 (1<<21) +/* specify binding interface */ +#define DCERPC_LOCALADDRESS (1<<22) + /* The following definitions come from librpc/rpc/binding.c */ const char *epm_floor_string(TALLOC_CTX *mem_ctx, struct epm_floor *epm_floor); -- cgit