summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-06-04 20:07:37 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-06-04 20:07:37 +1000
commit79b54a624e320a4eb0c20d910b6107ba3cbea393 (patch)
tree1b5ec4e30cf1f2d67e0bcd36e3aff87d310800cf /ctdb/include
parent464ed12991fb858a40a2041292b5462fbc850c9a (diff)
downloadsamba-79b54a624e320a4eb0c20d910b6107ba3cbea393.tar.gz
samba-79b54a624e320a4eb0c20d910b6107ba3cbea393.tar.xz
samba-79b54a624e320a4eb0c20d910b6107ba3cbea393.zip
change the takoverip/releaseip controls to pass a structure containing
both the nodenumber and the id of the node that has taken over that address in addition to the public address itself so that all nodes can learn which node is currently hosting each of the public addresses (This used to be ctdb commit 53e9ff790387b85a36fa9c3c44cd4c95cbdf35da)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 9f0224288f2..86bee8b4bcc 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -942,14 +942,20 @@ int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,
struct ctdb_req_control *c,
TDB_DATA indata,
bool *async_reply);
-int ctdb_ctrl_takeover_ip(struct ctdb_context *ctdb, struct timeval timeout,
- uint32_t destnode, const char *ip);
int32_t ctdb_control_release_ip(struct ctdb_context *ctdb,
struct ctdb_req_control *c,
TDB_DATA indata,
bool *async_reply);
+
+struct ctdb_public_ip {
+ uint32_t vnn;
+ uint32_t takeover_vnn;
+ struct sockaddr_in sin;
+};
+int ctdb_ctrl_takeover_ip(struct ctdb_context *ctdb, struct timeval timeout,
+ uint32_t destnode, struct ctdb_public_ip *ip);
int ctdb_ctrl_release_ip(struct ctdb_context *ctdb, struct timeval timeout,
- uint32_t destnode, const char *ip);
+ uint32_t destnode, struct ctdb_public_ip *ip);
/* from takeover/system.c */
int ctdb_sys_send_arp(const struct sockaddr_in *saddr, const char *iface);