All of lore.kernel.org
 help / color / mirror / Atom feed
From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/cman/daemon ais.c commands.c
Date: 21 Jul 2006 12:25:21 -0000	[thread overview]
Message-ID: <20060721122521.11242.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield at sourceware.org	2006-07-21 12:25:21

Modified files:
	cman/daemon    : ais.c commands.c 

Log message:
	Update to use new openAIS totemip & totempg APIs.
	Needs the Openais that's probably going to be released later today ;-)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.44&r2=1.45

--- cluster/cman/daemon/ais.c	2006/07/19 08:33:12	1.32
+++ cluster/cman/daemon/ais.c	2006/07/21 12:25:21	1.33
@@ -301,9 +301,10 @@
 							tmp, strlen(tmp)+1);
 
 			/* Save a local copy */
-			ret = totemip_parse(&mcast_addr[num_interfaces], mcast);
+			ret = totemip_parse(&mcast_addr[num_interfaces], mcast, 0);
 			if (!ret)
-				ret = totemip_parse(&ifaddrs[num_interfaces], ifaddr);
+				ret = totemip_parse(&ifaddrs[num_interfaces], ifaddr,
+						    mcast_addr[num_interfaces].family);
 			if (!ret)
 				num_interfaces++;
 			else
--- cluster/cman/daemon/commands.c	2006/06/30 13:00:27	1.44
+++ cluster/cman/daemon/commands.c	2006/07/21 12:25:21	1.45
@@ -307,7 +307,8 @@
 {
 	struct sockaddr_storage ss;
 	int addrlen=0;
-	unsigned int numaddrs;
+	unsigned int numaddrs=1;
+	char **status;
 	struct totem_ip_address node_ifs[num_interfaces];
 
 	strcpy(unode->name, node->name);
@@ -322,7 +323,7 @@
 
 	/* Just send the first address. If the user wants the full set they
 	   must ask for them */
-	totempg_ifaces_get(node->node_id, node_ifs, &numaddrs);
+	totempg_ifaces_get(node->node_id, node_ifs, &status, &numaddrs);
 
 
 	totemip_totemip_to_sockaddr_convert(&node_ifs[0], 0, &ss, &addrlen);
@@ -1073,6 +1074,7 @@
 	struct cl_get_node_addrs *addrs = (struct cl_get_node_addrs *)outbuf;
 	struct totem_ip_address node_ifs[num_interfaces];
 	struct cluster_node *node;
+	char **status;
 
 	if (retsize < sizeof(struct cl_node_addrs))
 		return -EINVAL;
@@ -1088,7 +1090,7 @@
 	if (node->state != NODESTATE_MEMBER)
 		return 0;
 
-	if (totempg_ifaces_get(nodeid, node_ifs, (unsigned int *)&addrs->numaddrs))
+	if (totempg_ifaces_get(nodeid, node_ifs, &status, (unsigned int *)&addrs->numaddrs))
 		return -errno;
 
 	for (i=0; i<addrs->numaddrs; i++) {
@@ -1711,7 +1713,7 @@
 	struct totem_ip_address ipaddr;
 	struct cluster_node *node;
 
-	if (totemip_parse(&ipaddr, nodename))
+	if (totemip_parse(&ipaddr, nodename, 0))
 	{
 		if (!nodeid) {
 			log_msg(LOG_ERR, "Error, can't find IP address and no nodeid for node %s - ignoring it\n", nodename);



                 reply	other threads:[~2006-07-21 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060721122521.11242.qmail@sourceware.org \
    --to=pcaulfield@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.