Whamcloud - gitweb
[tcpnal]: use passed-in port number to start listening socket.
authorericm <ericm>
Thu, 28 Aug 2003 09:09:13 +0000 (09:09 +0000)
committerericm <ericm>
Thu, 28 Aug 2003 09:09:13 +0000 (09:09 +0000)
lnet/ulnds/connection.c
lnet/ulnds/socklnd/connection.c
lustre/portals/unals/connection.c

index efc8a54..4dfd4b1 100644 (file)
@@ -266,11 +266,7 @@ static int bind_socket(manager m,unsigned short port)
     bzero((char *) &addr, sizeof(addr));
     addr.sin_family      = AF_INET;
     addr.sin_addr.s_addr = 0;
-#if 0
-    addr.sin_port        = port;
-#else
-    addr.sin_port        = htons(tcpnal_acceptor_port); /* force be 988 */
-#endif
+    addr.sin_port        = htons(port);
 
     if (bind(m->bound,(struct sockaddr *)&addr,alen)<0){
         perror ("tcpnal bind"); 
index efc8a54..4dfd4b1 100644 (file)
@@ -266,11 +266,7 @@ static int bind_socket(manager m,unsigned short port)
     bzero((char *) &addr, sizeof(addr));
     addr.sin_family      = AF_INET;
     addr.sin_addr.s_addr = 0;
-#if 0
-    addr.sin_port        = port;
-#else
-    addr.sin_port        = htons(tcpnal_acceptor_port); /* force be 988 */
-#endif
+    addr.sin_port        = htons(port);
 
     if (bind(m->bound,(struct sockaddr *)&addr,alen)<0){
         perror ("tcpnal bind"); 
index efc8a54..4dfd4b1 100644 (file)
@@ -266,11 +266,7 @@ static int bind_socket(manager m,unsigned short port)
     bzero((char *) &addr, sizeof(addr));
     addr.sin_family      = AF_INET;
     addr.sin_addr.s_addr = 0;
-#if 0
-    addr.sin_port        = port;
-#else
-    addr.sin_port        = htons(tcpnal_acceptor_port); /* force be 988 */
-#endif
+    addr.sin_port        = htons(port);
 
     if (bind(m->bound,(struct sockaddr *)&addr,alen)<0){
         perror ("tcpnal bind");