Date: Mon, 21 Mar 2011 08:54:59 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd control.c hast.conf.5 hast.h hastd.c parse.y primary.c proto.c proto.h proto_impl.h proto_socketpair.c proto_tcp4.c proto_uds.c secondary.c token.l Message-ID: <201103210855.p2L8tO8p089998@repoman.freebsd.org>
index | next in thread | raw e-mail
pjd 2011-03-21 08:54:59 UTC
FreeBSD src repository
Modified files:
sbin/hastd control.c hast.conf.5 hast.h hastd.c
parse.y primary.c proto.c proto.h
proto_impl.h proto_socketpair.c
proto_tcp4.c proto_uds.c secondary.c
token.l
Log:
SVN rev 219818 on 2011-03-21 08:54:59Z by pjd
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
Revision Changes Path
1.15 +2 -0 src/sbin/hastd/control.c
1.14 +13 -1 src/sbin/hastd/hast.conf.5
1.13 +2 -0 src/sbin/hastd/hast.h
1.44 +9 -1 src/sbin/hastd/hastd.c
1.11 +21 -1 src/sbin/hastd/parse.y
1.60 +21 -11 src/sbin/hastd/primary.c
1.12 +9 -7 src/sbin/hastd/proto.c
1.8 +2 -1 src/sbin/hastd/proto.h
1.7 +1 -1 src/sbin/hastd/proto_impl.h
1.8 +4 -2 src/sbin/hastd/proto_socketpair.c
1.14 +27 -6 src/sbin/hastd/proto_tcp4.c
1.12 +9 -2 src/sbin/hastd/proto_uds.c
1.28 +3 -3 src/sbin/hastd/secondary.c
1.6 +1 -0 src/sbin/hastd/token.l
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103210855.p2L8tO8p089998>
