s3:ctdbd_conn: simplify get_public_ips() / find_in_public_ips() API
authorDavid Disseldorp <ddiss@samba.org>
Sun, 6 Sep 2020 22:17:11 +0000 (00:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Oct 2020 12:29:55 +0000 (12:29 +0000)
commit6b9564c1084d8dc7319857fac984808571ef0eb9
tree3afe30e9ff8733e33de735afd7c627acd89d6c03
parent0253ba159b9a5017a11c63e362d70c9fea637ca2
s3:ctdbd_conn: simplify get_public_ips() / find_in_public_ips() API

These calls are used to check whether an IP address is static to the
host, or whether it could be migrated by ctdb.

Combine the calls into a simple ctdbd_public_ip_foreach(cb) function,
which avoids the need to expose struct ctdb_public_ip_list_old.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Oct 14 12:29:56 UTC 2020 on sn-devel-184
source3/include/ctdbd_conn.h
source3/lib/ctdb_dummy.c
source3/lib/ctdbd_conn.c
source3/smbd/process.c
source3/smbd/smb2_ioctl_network_fs.c