summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2013-01-16 12:09:05 +0530
committerAnand Avati <avati@redhat.com>2013-02-05 17:58:34 -0800
commit0f4bd1706f9243a0ae3569c47889ba7a784be23a (patch)
tree85546aff4b77bfd7ede75c962a2f8a5539dd7947
parent47b2bc274a0f00520b4b930da9034a76903b66b1 (diff)
rpc-transport/rdma: use 24008 as default listen port.
BUG: 849122 Change-Id: Ie76b105096f038b98434952a4eb352984595cecd Signed-off-by: Raghavendra G <raghavendra@gluster.com> Reviewed-on: http://review.gluster.org/4384 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--rpc/rpc-transport/rdma/src/name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-transport/rdma/src/name.c b/rpc/rpc-transport/rdma/src/name.c
index 3718cd7..2085894 100644
--- a/rpc/rpc-transport/rdma/src/name.c
+++ b/rpc/rpc-transport/rdma/src/name.c
@@ -352,6 +352,8 @@ af_inet_server_get_local_sockaddr (rpc_transport_t *this,
if (listen_port_data) {
listen_port = data_to_uint16 (listen_port_data);
} else {
+ listen_port = GF_DEFAULT_RDMA_LISTEN_PORT;
+
if (addr->sa_family == AF_INET6) {
struct sockaddr_in6 *in = (struct sockaddr_in6 *) addr;
in->sin6_addr = in6addr_any;