[ofw] [Patch 55/62] Reference implementation of NDv2
Fab Tillier
ftillier at microsoft.com
Wed Feb 20 21:04:49 PST 2013
[NDv2/WinVerbs] Properly increment the address list counter. An alternative to this fix is to delete the WinVerbs ND providers, as they are really obsolete...
Signed-off-by: Fab Tillier <ftillier at microsoft.com>
diff -dwup3 -X excl.txt -I ^ \*$ -I ^ \* \$ -r \dev\openib\Mellanox\10916\ulp\netdirect2\user\nd_provider.cpp .\ulp\netdirect2\user\nd_provider.cpp
--- \dev\openib\Mellanox\10916\ulp\netdirect2\user\nd_provider.cpp Mon Sep 10 11:47:59 2012
+++ .\ulp\netdirect2\user\nd_provider.cpp Thu Aug 23 11:08:42 2012
@@ -135,7 +135,7 @@ QueryAdapterAddressList(SOCKET_ADDRESS_L
for (cnt = 0, ai = res; ai; ai = ai->ai_next) {
if (SUCCEEDED(ai->ai_flags)) {
pAddressList->Address[cnt].iSockaddrLength = ai->ai_addrlen;
- pAddressList->Address[cnt].lpSockaddr = (LPSOCKADDR) offset;
+ pAddressList->Address[cnt++].lpSockaddr = (LPSOCKADDR) offset;
RtlCopyMemory(offset, ai->ai_addr, ai->ai_addrlen);
offset += ai->ai_addrlen;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndv2.55.patch
Type: application/octet-stream
Size: 752 bytes
Desc: ndv2.55.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20130221/94cf79e1/attachment.obj>
More information about the ofw
mailing list