s3:cluster: fix ctdb ipv6 support
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Jan 2009 11:09:46 +0000 (12:09 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 17 Jan 2009 17:03:58 +0000 (18:03 +0100)
commitc07bcd6efd3383fc3a46fce35fd34df85ab221c9
tree5930106a0fedccd6e26557231170f48cbd6c69dd
parent8e13be1db5c51002ae72c42c505a79406b2f4f63
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
(cherry picked from commit dc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12)
source/include/ctdbd_conn.h
source/lib/ctdbd_conn.c
source/smbd/server.c