[Linux-cluster] Multihome network configuration not working .!

Patrick Caulfield pcaulfie at redhat.com
Tue Sep 28 10:26:40 UTC 2004


Thanks. 

here's a patch that fixes it (yes, it is in cman_tool, not the kernel), or you
can get it from CVS.


diff -u -r1.9 join.c
--- cman/cman_tool/join.c       21 Sep 2004 08:04:43 -0000      1.9
+++ cman/cman_tool/join.c       28 Sep 2004 10:23:30 -0000
@@ -152,7 +152,7 @@
     if (bind(local_sock, (struct sockaddr *)&local_sin, sizeof(local_sin)))
        die("Cannot bind local address: %s", strerror(errno));
 
-    sock_info.number = num;
+    sock_info.number = num + 1;
     sock_info.multicast = 1;
 
     /* Pass the multicast socket to kernel space */
@@ -233,7 +233,7 @@
     if (bind(local_sock, (struct sockaddr *)&local_sin, sizeof(local_sin)))
        die("Cannot bind local address: %s", strerror(errno));
 
-    sock_info.number = num;
+    sock_info.number = num + 1;
 
     /* Pass the multicast socket to kernel space */
     sock_info.fd = mcast_sock;

-- 

patrick




More information about the Linux-cluster mailing list