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>
Fri, 16 Jan 2009 14:16:59 +0000 (15:16 +0100)
commitdc6edf1ab4ae8e3fb3ef40b93135ff0ef5407e12
treee199445195020bde967d7d8b1b6d28e76ba74ec8
parent6a94b7b9270f3d69595b93e2632051c9842645c9
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
source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c
source3/smbd/server.c