It does not need a dcesrv_endpoint.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
void *termination_data;
};
-NTSTATUS dcesrv_create_ncacn_np_socket(struct dcesrv_endpoint *e, int *out_fd)
+NTSTATUS dcesrv_create_ncacn_np_socket(struct dcerpc_binding *b, int *out_fd)
{
char *np_dir = NULL;
int fd = -1;
char *endpoint_normalized = NULL;
char *p = NULL;
- endpoint = dcerpc_binding_get_string_option(e->ep_description,
- "endpoint");
+ endpoint = dcerpc_binding_get_string_option(b, "endpoint");
if (endpoint == NULL) {
DBG_ERR("Endpoint mandatory for named pipes\n");
return NT_STATUS_INVALID_PARAMETER;
void set_incoming_fault(struct pipes_struct *p);
void process_complete_pdu(struct pipes_struct *p, struct ncacn_packet *pkt);
-NTSTATUS dcesrv_create_ncacn_np_socket(struct dcesrv_endpoint *e, int *out_fd);
+NTSTATUS dcesrv_create_ncacn_np_socket(struct dcerpc_binding *b, int *out_fd);
NTSTATUS dcesrv_create_ncacn_ip_tcp_socket(const struct sockaddr_storage *ifss,
uint16_t *port,
}
case NCACN_NP:
- status = dcesrv_create_ncacn_np_socket(e, fds);
+ status = dcesrv_create_ncacn_np_socket(e->ep_description, fds);
break;
default:
break;
case NCACN_NP:
- status = dcesrv_create_ncacn_np_socket(e, &fd);
+ status = dcesrv_create_ncacn_np_socket(
+ e->ep_description, &fd);
break;
default: