From df8eda028049b05258a8a61fbae77e78e9a46d38 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sun, 20 Jun 2004 07:30:46 +0000 Subject: [PATCH] x86 was not setting port to network byte order, which resulted in port being byte swapped. This of course, doesn't work well with xscale boards. (Logical change 1.9) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@17 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/parse.c b/exec/parse.c index cf5181cf..3c032ef0 100644 --- a/exec/parse.c +++ b/exec/parse.c @@ -431,7 +431,7 @@ int amfReadNetwork (char **error_string, res = inet_aton (&line[strlen("bindnetaddr:")], &bindnet_addr->sin_addr); } else if (strncmp ("mcastport:", line, strlen ("mcastport:")) == 0) { - res = mcast_addr->sin_port = atoi (&line[strlen("mcastport:")]); + res = mcast_addr->sin_port = htons (atoi (&line[strlen("mcastport:")])); } else { res = 0; break;