When we create a tcp connection to a remote ctdb node do an explicit bind() to set...
authorRonnie sahlberg <ronniesahlberg@gmail.com>
Thu, 5 Apr 2007 23:08:41 +0000 (09:08 +1000)
committerRonnie sahlberg <ronniesahlberg@gmail.com>
Thu, 5 Apr 2007 23:08:41 +0000 (09:08 +1000)
commite0743d2f84ca0088734c912e210deb93a6b78860
treeb5ae132337d0e7a469983b1b4720d1a5a622d462
parentac6ac290e79446f52caf31f429b4c38668c27eda
When we create a tcp connection to a remote ctdb node  do an explicit bind() to set our source side to the same ip address as we use to listen to ctdb traffic.

We need this since there is no guarantee that INADDR_ANY (which would be defaulted to if we dont bind) would be routable from the remote host.
This is entirely possible to happen since CTDB traffic is likely to be isolated to a private non-routable network.
tcp/tcp_connect.c