summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-10-10 09:42:32 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-10-10 09:42:32 +1000
commitbdd67bba1e6bbbdc8b1556025fa1247fd586a14d (patch)
treec33e9a72401e0e870e878addd925a6f4b70804ed /ctdb/include
parent7735957693cc3590e5d290b1992242e27e1e1cfc (diff)
downloadsamba-bdd67bba1e6bbbdc8b1556025fa1247fd586a14d.tar.gz
samba-bdd67bba1e6bbbdc8b1556025fa1247fd586a14d.tar.xz
samba-bdd67bba1e6bbbdc8b1556025fa1247fd586a14d.zip
add a --single-public-ip argument to ctdbd to specify the ip address
used in single public ip address mode. when using this argument, --public-interface must also be used. add a vnn structure to the ctdb context to describe the single public ip address update the killtcp control in the daemon that if a socketpair that is to be killed does not match a normal public address it checks if the destination address maches the single public ip address and if so uses that vnn structure from the ctdb context this allows killtcp to kill also connections to the single public ip instead of only normal public addresses (This used to be ctdb commit 5661ba17b91f62821dec1c76056c78b99752a90b)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 983871006a..5a82988a0b 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -343,6 +343,7 @@ struct ctdb_context {
uint16_t idr_cnt;
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 */
char *err_msg;
const struct ctdb_methods *methods; /* transport methods */
const struct ctdb_upcalls *upcalls; /* transport upcalls */