From: tzachid Date: Thu, 6 Sep 2007 09:07:27 +0000 (+0000) Subject: [wsd] Fix a bug for the IA64 processor (based on patch from stan.smith@intel.com) X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=5e72ec9ef7bfcd92f78e96157be8303b70f21eb0;p=~shefty%2Frdma-win.git [wsd] Fix a bug for the IA64 processor (based on patch from stan.smith@intel.com) git-svn-id: svn://openib.tc.cornell.edu/gen1@780 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/wsd/user/ibsp_ip.c b/trunk/ulp/wsd/user/ibsp_ip.c index 6fb1e2c7..2a2da82e 100644 --- a/trunk/ulp/wsd/user/ibsp_ip.c +++ b/trunk/ulp/wsd/user/ibsp_ip.c @@ -155,10 +155,11 @@ query_ip_address( IBSP_ERROR_EXIT( ("no memory\n") ); break; } + /* Copy the IP address being ia64 friendly */ + memcpy( (void*)&ip_addr->ip_addr.S_un.S_addr, + (void*)&p_out->Address[i].Address[ATS_IPV4_OFFSET], + sizeof(ib_net32_t) ); - /* Copy the IP address */ - ip_addr->ip_addr.S_un.S_addr = - *(ib_net32_t *) &p_out->Address[i].Address[ATS_IPV4_OFFSET]; ip_addr->p_port = p_port; p_item = cl_fmap_insert( p_ip_map, ip_addr, &ip_addr->item );