summaryrefslogtreecommitdiffstats
path: root/ctdb/ib/ibwrapper_test.c
diff options
context:
space:
mode:
authorPeter Somogyi <psomogyi@gamax.hu>2007-02-14 18:58:20 +0100
committerPeter Somogyi <psomogyi@gamax.hu>2007-02-14 18:58:20 +0100
commit1c8bcd6f5718a675f8a382d143d82871aac85296 (patch)
treecd39c6231d97526ee9027209c1d9ff0fe0406d55 /ctdb/ib/ibwrapper_test.c
parent8b6f1c39e7b8b423e28fbfed09577d8e7f9d1de0 (diff)
downloadsamba-1c8bcd6f5718a675f8a382d143d82871aac85296.tar.gz
samba-1c8bcd6f5718a675f8a382d143d82871aac85296.tar.xz
samba-1c8bcd6f5718a675f8a382d143d82871aac85296.zip
ib: a trivial approach of integration
TODO: bugfix (not yet complete, something happens differently than expected at tcpip when connection is refused in the beginning) (This used to be ctdb commit 330d76fb91f717d4fb8d1be29c11ddf8c25a4f1c)
Diffstat (limited to 'ctdb/ib/ibwrapper_test.c')
-rw-r--r--ctdb/ib/ibwrapper_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/ib/ibwrapper_test.c b/ctdb/ib/ibwrapper_test.c
index 65877872fd..dc07a1c313 100644
--- a/ctdb/ib/ibwrapper_test.c
+++ b/ctdb/ib/ibwrapper_test.c
@@ -477,7 +477,7 @@ int ibwtest_getdests(struct ibwtest_ctx *tcx, char op)
p = tcx->addrs + i;
p->sin_family = AF_INET;
p->sin_addr.s_addr = inet_addr(attrs[i].name);
- p->sin_port = atoi(attrs[i].value);
+ p->sin_port = htons(atoi(attrs[i].value));
}
return 0;