summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-05-12 12:35:02 +0200
committerAndrew Tridgell <tridge@samba.org>2011-06-06 12:26:10 +1000
commitdc8c8fd9e4f85974cd0665e613d4422ba8dd900e (patch)
tree0f1f60584986c4648ace8af742d2023fe5c87dc8 /source4/rpc_server
parentd510687408c03291df767e0ccacebcd4a360646c (diff)
downloadsamba-dc8c8fd9e4f85974cd0665e613d4422ba8dd900e.tar.gz
samba-dc8c8fd9e4f85974cd0665e613d4422ba8dd900e.tar.bz2
samba-dc8c8fd9e4f85974cd0665e613d4422ba8dd900e.zip
s4-ipv6: use iface_list_wildcard() to listen on IPv6
when we need to listen on a wildcard address, we now listen on a list of sockets, usually 0.0.0.0 and ::
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index fcf3f2f7e6..762221dc5b 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -1687,9 +1687,15 @@ static NTSTATUS dcesrv_add_ep_tcp(struct dcesrv_context *dce_ctx,
NT_STATUS_NOT_OK_RETURN(status);
}
} else {
- status = add_socket_rpc_tcp_iface(dce_ctx, e, event_ctx, model_ops,
- lpcfg_socket_address(lp_ctx));
- NT_STATUS_NOT_OK_RETURN(status);
+ const char **wcard;
+ int i;
+ wcard = iface_list_wildcard(dce_ctx, lp_ctx);
+ NT_STATUS_HAVE_NO_MEMORY(wcard);
+ for (i=0; wcard[i]; i++) {
+ status = add_socket_rpc_tcp_iface(dce_ctx, e, event_ctx, model_ops, wcard[i]);
+ NT_STATUS_NOT_OK_RETURN(status);
+ }
+ talloc_free(wcard);
}
return NT_STATUS_OK;