1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3/librpc/idl/rpc_host.idl
Volker Lendecke a697814eba idl: Define messages sent between samba-dcerpcd and rpcd's
MSG_RPC_DUMP_STATUS will be like pool-usage carrying a file descriptor to
report status to, the other two are described in rpc_host.idl.

NOALIGN on rpc_worker_status: This makes it easier to count bytes to
push into a static buffer.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2021-12-10 14:02:30 +00:00

77 lines
1.7 KiB
Plaintext

/**
* @file rpc_host.idl
*
* Definitions for communication between samba-dcerpcd and rpc helper
* daemons
*/
#include "idl_types.h"
import "named_pipe_auth.idl";
import "dcerpc.idl";
[
pointer_default(unique)
]
interface rpc_host_msg
{
/**
* @brief MSG_RPC_HOST_NEW_CLIENT: samba-dcerpcd->rpcd
*
* samba-dcerpcd to rpcd msg announcing a new client. This
* will carry a file descriptor representing the new
* connection
*/
typedef [public] struct {
/**
* @brief The binding the client wants to connect to
*/
[string,charset(UTF8)] char *binding;
/**
* @brief Auth info inherited from SMB
*/
named_pipe_auth_req_info5 *npa_info5;
/**
* @brief Raw bind PDU
*
* Already read from the socket by samba-dcerpcd
*/
DATA_BLOB bind_packet;
} rpc_host_client;
/**
* @brief MSG_RPC_WORKER_STATUS: rpcd->samba-dcerpcd
*
* Once a client has been handed over from samba-dcerpcd to an
* rpcd, samba-dcerpc has no control over this socket
* anymore. So it can't know when the client exits and the
* rpcd helper process has a slot free. Thus whenever a client
* exits, rpcd sends this message up to samba-dcerpc for a
* status update.
*/
typedef [flag(NDR_NOALIGN),public] struct {
/**
* @brief Which rpc service is this message from
*
* samba-dcerpcd will only have the source pid of this
* message. To avoid a walk through all arrays with
* all rpcd helpers, give samba-dcerpcd a hint where
* in its arrays to find the rpcd that sent this
* message.
*/
uint8 server_index;
/**
* @brief Which of the processes of a helper prog is this from
*/
uint8 worker_index;
/**
* @brief How many clients this process serves right now
*/
uint32 num_clients;
} rpc_worker_status;
}