summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/proto_impl.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-21 08:54:59 +0000
committerpjd <pjd@FreeBSD.org>2011-03-21 08:54:59 +0000
commit3420a736119b646db3defc2c3e24d534e35d73a0 (patch)
treec174097a26c9fb50392210eb339837c6cf4e95d9 /sbin/hastd/proto_impl.h
parentee6f63ce1774533a3602145d9627d54d14d70769 (diff)
downloadFreeBSD-src-3420a736119b646db3defc2c3e24d534e35d73a0.zip
FreeBSD-src-3420a736119b646db3defc2c3e24d534e35d73a0.tar.gz
In hast.conf we define the other node's address in 'remote' variable.
This way we know how to connect to secondary node when we are primary. The same variable is used by the secondary node - it only accepts connections from the address stored in 'remote' variable. In cluster configurations it is common that each node has its individual IP address and there is one addtional shared IP address which is assigned to primary node. It seems it is possible that if the shared IP address is from the same network as the individual IP address it might be choosen by the kernel as a source address for connection with the secondary node. Such connection will be rejected by secondary, as it doesn't come from primary node individual IP. Add 'source' variable that allows to specify source IP address we want to bind to before connecting to the secondary node. MFC after: 1 week
Diffstat (limited to 'sbin/hastd/proto_impl.h')
-rw-r--r--sbin/hastd/proto_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/proto_impl.h b/sbin/hastd/proto_impl.h
index 9dc5a74..37df4f4 100644
--- a/sbin/hastd/proto_impl.h
+++ b/sbin/hastd/proto_impl.h
@@ -39,7 +39,7 @@
#define __constructor __attribute__((constructor))
-typedef int hp_client_t(const char *, void **);
+typedef int hp_client_t(const char *, const char *, void **);
typedef int hp_connect_t(void *, int);
typedef int hp_connect_wait_t(void *, int);
typedef int hp_server_t(const char *, void **);
OpenPOWER on IntegriCloud