summaryrefslogtreecommitdiffstats
path: root/source3/include/ctdbd_conn.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-14 12:09:46 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-16 15:16:59 +0100
commitdc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12 (patch)
treee199445195020bde967d7d8b1b6d28e76ba74ec8 /source3/include/ctdbd_conn.h
parent6a94b7b9270f3d69595b93e2632051c9842645c9 (diff)
downloadsamba-dc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12.tar.gz
samba-dc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12.tar.xz
samba-dc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12.zip
s3:cluster: fix ctdb ipv6 support
We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD. CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions: - with struct ctdb_control_tcp it only supports ipv4. - with struct ctdb_control_tcp_addr it supports ipv4 and ipv6. You need new header files which defines struct ctdb_control_tcp_addr, but at runtime it should be fine to work against older ctdb versions (<= 1.0.68). metze
Diffstat (limited to 'source3/include/ctdbd_conn.h')
-rw-r--r--source3/include/ctdbd_conn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h
index 44c35168a81..d7212353362 100644
--- a/source3/include/ctdbd_conn.h
+++ b/source3/include/ctdbd_conn.h
@@ -57,8 +57,8 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
void *private_data);
NTSTATUS ctdbd_register_ips(struct ctdbd_connection *conn,
- const struct sockaddr *server,
- const struct sockaddr *client,
+ const struct sockaddr_storage *server,
+ const struct sockaddr_storage *client,
void (*release_ip_handler)(const char *ip_addr,
void *private_data),
void *private_data);