mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-05-24 17:30:24 +00:00
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
This commit is contained in:
parent
f667e6de8e
commit
df8eda0280
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user