[ofw] FW: Patch: [IPOIB] IPoIB PXE boot support: Clear remainder of chaddr

Tzachi Dar tzachid at mellanox.co.il
Mon Aug 17 02:45:30 PDT 2009


A small patch (attached, with commit message) against current WinOF,
which removes trailing garbage bytes from the DHCP chaddr field when
using a Windows DHCP server and the latest IPoIB PXE code.

--- a/ulp/ipoib/kernel/ipoib_port.c
+++ b/ulp/ipoib/kernel/ipoib_port.c
@@ -2349,6 +2349,8 @@ __recv_dhcp(
 		RtlFillMemory(&p_cid[11], 12, 0);
 
 		RtlCopyMemory( p_dhcp->chaddr, &p_src->mac,
sizeof(p_src->mac) );
+		RtlFillMemory( &p_dhcp->chaddr[sizeof(p_src->mac)],
+			       ( sizeof(p_dhcp->chaddr) -
sizeof(p_src->mac) ), 0 );
 	}
 	IPOIB_EXIT( IPOIB_DBG_RECV );
 	return status;

Thanks,

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winof-ipoib-tidy-chaddr.patch
Type: text/x-diff
Size: 1158 bytes
Desc: winof-ipoib-tidy-chaddr.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090817/ab3acf7b/attachment.patch>


More information about the ofw mailing list