From bea53c60b80d40a31c7e4fd9750512b94a768e36 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 16 Dec 2009 10:39:40 +0100 Subject: server: keep the interface information in a list of ctdb_iface structures metze (This used to be ctdb commit ff5291778f0752e176539397e9530dcf0e546bea) --- ctdb/include/ctdb_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ctdb/include') 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 */ -- cgit