The IP version is in the upper 4 bits of an 8 bit field. It is set
correctly, but not ready out correctly. The result is that an IPv4
address reported to user space is listed as an IPv6 address instead.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2348
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
pId->context = ep;\r
\r
hdr = pEvent->data.req.req.p_pdata;\r
- if (hdr->IpVersion == 4) {\r
+ if ((hdr->IpVersion >> 4) == 4) {\r
ep->Attributes.LocalAddress.SockAddr.In.SinFamily = WV_AF_INET;\r
ep->Attributes.LocalAddress.SockAddr.In.SinAddr = hdr->DstAddress.Ip4.Address;\r
ep->Attributes.PeerAddress.SockAddr.In.SinFamily = WV_AF_INET;\r