* Start listening on the ncalrpc socket
********************************************************************/
-NTSTATUS dcesrv_create_ncalrpc_socket(struct dcesrv_endpoint *e, int *out_fd)
+NTSTATUS dcesrv_create_ncalrpc_socket(struct dcerpc_binding *b, int *out_fd)
{
int fd = -1;
const char *endpoint = NULL;
NTSTATUS status;
- endpoint = dcerpc_binding_get_string_option(e->ep_description,
- "endpoint");
+ endpoint = dcerpc_binding_get_string_option(b, "endpoint");
if (endpoint == NULL) {
/*
* No identifier specified: use DEFAULT or SMBD.
} else {
endpoint = "DEFAULT";
}
- status = dcerpc_binding_set_string_option(e->ep_description,
- "endpoint",
- endpoint);
+ status = dcerpc_binding_set_string_option(
+ b, "endpoint", endpoint);
if (!NT_STATUS_IS_OK(status)) {
DBG_ERR("Failed to set ncalrpc 'endpoint' binding "
"string option to '%s': %s\n",
uint16_t *port,
int *out_fd);
-NTSTATUS dcesrv_create_ncalrpc_socket(struct dcesrv_endpoint *e, int *fd);
+NTSTATUS dcesrv_create_ncalrpc_socket(struct dcerpc_binding *b, int *fd);
struct dcerpc_ncacn_listen_state;
int dcesrv_setup_ncacn_listener(
switch (transport) {
case NCALRPC:
- status = dcesrv_create_ncalrpc_socket(e, fds);
+ status = dcesrv_create_ncalrpc_socket(e->ep_description, fds);
break;
case NCACN_IP_TCP: {
switch (transport) {
case NCALRPC:
- status = dcesrv_create_ncalrpc_socket(e, &fd);
+ status = dcesrv_create_ncalrpc_socket(e->ep_description, &fd);
break;
case NCACN_IP_TCP: