adda GETPUBLICIPS control to libctdb and use this in the test example
[sahlberg/ctdb.git] / include / ctdb_protocol.h
index a9f6249d617788c73d1530556ac679fbdb49a3f5..f04b3f39fbd19394d085219bd1be31f6690d686f 100644 (file)
@@ -155,6 +155,12 @@ struct ctdb_call_info {
  */
 #define CTDB_SRVID_ISCSID_RANGE  0xFE02000000000000LL
 
+/* A range of ports reserved for testing (top 32 bits)
+ * All ports matching the 32 top bits are reserved for exclusive use by
+ * test applications
+ */
+#define CTDB_SRVID_TEST_RANGE  0xFE03000000000000LL
+
 /* used on the domain socket, send a pdu to the local daemon */
 #define CTDB_CURRENT_NODE     0xF0000001
 /* send a broadcast to all nodes in the cluster, active or not */
@@ -518,4 +524,14 @@ struct ctdb_node_map {
 #define NODE_FLAGS_INACTIVE            (NODE_FLAGS_DELETED|NODE_FLAGS_DISCONNECTED|NODE_FLAGS_BANNED|NODE_FLAGS_STOPPED)
 
 
+struct ctdb_public_ip {
+       uint32_t pnn;
+       ctdb_sock_addr addr;
+};
+
+struct ctdb_all_public_ips {
+       uint32_t num;
+       struct ctdb_public_ip ips[1];
+};
+
 #endif