summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-16 10:39:40 +0100
committerStefan Metzmacher <metze@samba.org>2010-01-20 11:10:58 +0100
commitbea53c60b80d40a31c7e4fd9750512b94a768e36 (patch)
tree82e085b7b2f25679ffc950646936bc93093d1897 /ctdb/include
parent539ebdc94c9796b3caf4c1602a408865a7cf7576 (diff)
downloadsamba-bea53c60b80d40a31c7e4fd9750512b94a768e36.tar.gz
samba-bea53c60b80d40a31c7e4fd9750512b94a768e36.tar.xz
samba-bea53c60b80d40a31c7e4fd9750512b94a768e36.zip
server: keep the interface information in a list of ctdb_iface structures
metze (This used to be ctdb commit ff5291778f0752e176539397e9530dcf0e546bea)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index aaae250f40..b186cca684 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -181,12 +181,13 @@ struct ctdb_client {
struct ctdb_client_notify_list *notify;
};
+struct ctdb_iface;
/* state associated with a public ip address */
struct ctdb_vnn {
struct ctdb_vnn *prev, *next;
- const char *iface;
+ struct ctdb_iface *iface;
const char **ifaces;
ctdb_sock_addr public_address;
uint8_t public_netmask_bits;
@@ -425,6 +426,7 @@ struct ctdb_context {
struct ctdb_node **nodes; /* array of nodes in the cluster - indexed by vnn */
struct ctdb_vnn *vnn; /* list of public ip addresses and interfaces */
struct ctdb_vnn *single_ip_vnn; /* a structure for the single ip */
+ struct ctdb_iface *ifaces; /* list of local interfaces */
char *err_msg;
const struct ctdb_methods *methods; /* transport methods */
const struct ctdb_upcalls *upcalls; /* transport upcalls */