mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-protocol: Add REQ_TUNNEL packet type
This allows to tunnel new protocols using ctdb transport. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
76a1c5a162
commit
c202b188bf
@ -36,6 +36,7 @@ enum ctdb_operation {
|
||||
CTDB_REQ_CONTROL = 7,
|
||||
CTDB_REPLY_CONTROL = 8,
|
||||
CTDB_REQ_KEEPALIVE = 9,
|
||||
CTDB_REQ_TUNNEL = 10,
|
||||
};
|
||||
|
||||
/* used on the domain socket, send a pdu to the local daemon */
|
||||
@ -998,6 +999,16 @@ struct ctdb_req_keepalive {
|
||||
uint32_t uptime;
|
||||
};
|
||||
|
||||
#define CTDB_TUNNEL_FLAG_REQUEST 0x00000001
|
||||
#define CTDB_TUNNEL_FLAG_REPLY 0x00000002
|
||||
#define CTDB_TUNNEL_FLAG_NOREPLY 0x00000010
|
||||
|
||||
struct ctdb_req_tunnel {
|
||||
uint64_t tunnel_id;
|
||||
uint32_t flags;
|
||||
TDB_DATA data;
|
||||
};
|
||||
|
||||
|
||||
/* This is equivalent to server_id */
|
||||
struct ctdb_server_id {
|
||||
|
Loading…
Reference in New Issue
Block a user