diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-07-07 17:21:54 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-09-01 08:52:07 +0200 |
commit | 1787a4b63292aee0e9df4e4031188ac239d804d8 (patch) | |
tree | e8a30034ab27dff14ca078c8918cff031ce48bbc /ctdb/protocol/protocol.h | |
parent | 15c91774d943fba1985f33d10e24030264ce64c8 (diff) | |
download | samba-1787a4b63292aee0e9df4e4031188ac239d804d8.tar.gz |
ctdb-protocol: Add a generic packet header
This will avoid duplication when new daemons (and new client-server
protocols) are created out of the main ctdb daemon.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol/protocol.h')
-rw-r--r-- | ctdb/protocol/protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index 67a66c715c1..ad757d8c27d 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -1008,6 +1008,15 @@ struct ctdb_g_lock_list { }; /* + * Generic packet header + */ + +struct sock_packet_header { + uint32_t length; + uint32_t reqid; +}; + +/* * Eventd protocol */ |