Hi all,
I use heartbeat in a virtual server scenario where the virtual servers
do not have "direct" access to the network interfaces. The following
(minuscule) patch allows heartbeat to send it's mcast heartbeats via
the default interface. Basically everything was in already place
except for the ability to specify this via the configuration file:
--- heartbeat-2.0.8.orig/lib/plugins/HBcomm/mcast.c 2007-01-11
21:57:08.000000000 -0500
+++ heartbeat-2.0.8/lib/plugins/HBcomm/mcast.c 2009-04-09
16:34:10.000000000 -0400
@@ -709,7 +709,7 @@
addr->s_addr = INADDR_ANY;
memset(&if_info, 0, sizeof(if_info));
- if (ifname) {
+ if ((ifname)&&(strcmp(ifname, "any") != 0)) {
strncpy(if_info.ifr_name, ifname, IFNAMSIZ-1);
}else{ /* ifname is NULL, so use any address */
return 0;
Thanks,
Patrick
--
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems