1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/librpc/idl/server_id.idl
Andrew Bartlett f10c638100 s4-messaging: Fill in the whole server_id in all use cases
This started per https://bugzilla.samba.org/show_bug.cgi?id=8872#c4
and avoids any possible collision with a different process.

We also need to ensure that across a Samba installation on a single
node that id.vnn is the same.  Samba4 previously used 0, while Samba3
used NONCLUSTER_VNN.  When a message is sent between these 'different'
nodes, the error NT_STATUS_INVALID_DEVICE_REQUEST is raised.

Andrew Bartlett
2012-04-30 17:55:11 +10:00

37 lines
634 B
Plaintext

[
pointer_default(unique)
]
interface server_id
{
/*
* Virtual Node Numbers are identifying a node within a cluster.
* Ctdbd sets this, we retrieve our vnn from it.
*/
const int NONCLUSTER_VNN = 0xFFFFFFFF;
/** Don't verify this unique id */
const int SERVERID_UNIQUE_ID_NOT_TO_VERIFY = 0xFFFFFFFFFFFFFFFFULL;
/* used to look like the following, note that unique_id was not
* marshalled at all...
struct server_id {
pid_t pid;
#ifdef CLUSTER_SUPPORT
uint32 vnn;
#endif
uint64_t unique_id;
};
*/
typedef [public] struct {
hyper pid;
uint32 task_id;
uint32 vnn;
hyper unique_id;
} server_id;
}