From: Martin Schwenke Date: Wed, 14 May 2025 06:55:51 +0000 (+1000) Subject: ctdb-protocol: Add CTDB server SRVID range X-Git-Tag: tevent-0.17.0~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=631d1d38ad10c73aa559561bea6b5ed45c2226c4;p=thirdparty%2Fsamba.git ctdb-protocol: Add CTDB server SRVID range Normally, communication from other components to ctdbd is done via controls. However, there are contexts where receiving SRVID messages in ctdbd makes sense, such as replies to outgoing SRVID messages. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15858 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index c775c4bcc64..ecec0a45891 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -234,6 +234,13 @@ struct ctdb_call { #define CTDB_SRVID_TEST_RANGE 0xAE00000000000000LL +/* Range of ports reserved for CTDB server (top 8 bits) + * All ports matching the 8 top bits are reserved for exclusive use by + * the CTDB server + */ +#define CTDB_SRVID_SERVER_RANGE 0x9E00000000000000LL + + enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0, CTDB_CONTROL_STATISTICS = 1, /* #2 removed */