s3:cluster: fix ctdb ipv6 support
commit8c722e34ed6e0368cd7b2a643694ec374c78b5bb
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Jan 2009 11:09:46 +0000 (14 12:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Jan 2009 13:16:49 +0000 (20 14:16 +0100)
tree65be1fc0c4554f36e51f991a9a9dbb5d3983e37c
parentfac9e930c6bfff9c6f2526814f08cb1a0b3e9f02
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)
(cherry picked from commit c07bcd6efd3383fc3a46fce35fd34df85ab221c9)
source/include/ctdbd_conn.h
source/lib/ctdbd_conn.c
source/smbd/server.c