[zeromq-dev] Zyre ipaddress in Hello message
Arnaud Loonstra
arnaud at sphaero.org
Fri Dec 27 18:34:33 CET 2013
Imagine I'm running Zyre on node A with multiple interfaces.
eth0: 192.168.1.10
eth1: 192.168.2.10
The zbeacon beacon is broadcasted on all interfaces. (255.255.255.255)
The zyre router socket listens on all interfaces. (tcp://*)
From zbeacon I'm receiving an ipaddress of an interface: 192.168.1.10
(self->host)
Now node B is discoverd through eth1. It will receive a HELLO message
from Node A containing the ipaddress 192.168.1.10 however it should use
192.168.2.10 instead. The two nodes can't finish their handshake.
I haven't tested this but I was going through the code and I understand
this will happen.
Am I missing something here?
To circumvent a situation like this. The HELLO message doesn't need to
contain an ipaddress because Node B can get the ipaddress from the
message it receives on its socket.
The routing table of the OS on Node A will make sure the right socket
will be picked.
I was just wondering this situation. Anybody experience with this?
Rg,
Arnaud
--
w: http://www.sphaero.org
t: http://twitter.com/sphaero
g: http://github.com/sphaero
i: freenode: sphaero_z25
More information about the zeromq-dev
mailing list