Whamcloud - gitweb
i=eeb:
authorisaac <isaac>
Tue, 16 Oct 2007 16:32:02 +0000 (16:32 +0000)
committerisaac <isaac>
Tue, 16 Oct 2007 16:32:02 +0000 (16:32 +0000)
-   ibm_version is a u16.

lnet/klnds/openiblnd/openiblnd.c

index 8de9e85..12ae77c 100644 (file)
@@ -443,7 +443,7 @@ kibnal_handle_svcqry (struct socket *sock)
         }
 
         version = (msg->ibm_magic == IBNAL_MSG_MAGIC) ?
-                  msg->ibm_version : __swab32(msg->ibm_version);
+                  msg->ibm_version : __swab16(msg->ibm_version);
         /* Peer is a different protocol version: reply in my current protocol
          * to tell her I'm "old" */
         if (version != IBNAL_MSG_VERSION &&