mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:rpc_server: Rename create_named_pipe_socket
Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
af576d335a
commit
7f8f857dfe
@ -657,7 +657,7 @@ pid_t start_spoolssd(struct tevent_context *ev_ctx,
|
||||
|
||||
/* the listening fd must be created before the children are actually
|
||||
* forked out. */
|
||||
listen_fd = create_named_pipe_socket(SPOOLSS_PIPE_NAME);
|
||||
listen_fd = dcesrv_create_ncacn_np_socket(SPOOLSS_PIPE_NAME);
|
||||
if (listen_fd == -1) {
|
||||
exit(1);
|
||||
}
|
||||
|
@ -627,7 +627,7 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx,
|
||||
}
|
||||
|
||||
/* LSARPC */
|
||||
fd = create_named_pipe_socket("lsarpc");
|
||||
fd = dcesrv_create_ncacn_np_socket("lsarpc");
|
||||
if (fd < 0) {
|
||||
goto done;
|
||||
}
|
||||
@ -641,7 +641,7 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx,
|
||||
listen_fd[*listen_fd_size] = fd;
|
||||
(*listen_fd_size)++;
|
||||
|
||||
fd = create_named_pipe_socket("lsass");
|
||||
fd = dcesrv_create_ncacn_np_socket("lsass");
|
||||
if (fd < 0) {
|
||||
goto done;
|
||||
}
|
||||
@ -696,7 +696,7 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx,
|
||||
}
|
||||
|
||||
/* SAMR */
|
||||
fd = create_named_pipe_socket("samr");
|
||||
fd = dcesrv_create_ncacn_np_socket("samr");
|
||||
if (fd < 0) {
|
||||
goto done;
|
||||
}
|
||||
@ -751,7 +751,7 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx,
|
||||
}
|
||||
|
||||
/* NETLOGON */
|
||||
fd = create_named_pipe_socket("netlogon");
|
||||
fd = dcesrv_create_ncacn_np_socket("netlogon");
|
||||
if (fd < 0) {
|
||||
goto done;
|
||||
}
|
||||
|
@ -549,7 +549,7 @@ static bool mdssd_create_sockets(struct tevent_context *ev_ctx,
|
||||
}
|
||||
|
||||
/* mdssvc */
|
||||
fd = create_named_pipe_socket("mdssvc");
|
||||
fd = dcesrv_create_ncacn_np_socket("mdssvc");
|
||||
if (fd < 0) {
|
||||
goto done;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ static void named_pipe_listener(struct tevent_context *ev,
|
||||
uint16_t flags,
|
||||
void *private_data);
|
||||
|
||||
int create_named_pipe_socket(const char *pipe_name)
|
||||
int dcesrv_create_ncacn_np_socket(const char *pipe_name)
|
||||
{
|
||||
char *np_dir = NULL;
|
||||
int fd = -1;
|
||||
@ -156,7 +156,7 @@ bool setup_named_pipe_socket(const char *pipe_name,
|
||||
DEBUG(0, ("Out of memory\n"));
|
||||
goto out;
|
||||
}
|
||||
state->fd = create_named_pipe_socket(pipe_name);
|
||||
state->fd = dcesrv_create_ncacn_np_socket(pipe_name);
|
||||
if (state->fd == -1) {
|
||||
goto out;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
|
||||
|
||||
void set_incoming_fault(struct pipes_struct *p);
|
||||
void process_complete_pdu(struct pipes_struct *p, struct ncacn_packet *pkt);
|
||||
int create_named_pipe_socket(const char *pipe_name);
|
||||
int dcesrv_create_ncacn_np_socket(const char *pipe_name);
|
||||
bool setup_named_pipe_socket(const char *pipe_name,
|
||||
struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user