[IPOIB] IPoIB PXE boot support: Don't truncate DHCP options.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Jun 2009 10:10:39 +0000 (10:10 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Jun 2009 10:10:39 +0000 (10:10 +0000)
Signed off by: ftillier@windows.microsoft.com

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2274 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 76a0140..da36393 100644 (file)
@@ -2343,14 +2343,12 @@ __recv_dhcp(
                 * accesses to the contents.\r
                 * Recover CID to standard type.\r
                 */\r
-\r
-               CL_ASSERT(sizeof(ib_net64_t) == 8);\r
-\r
                p_cid[1] =  sizeof (ib_net64_t) + 1;// CID length \r
                p_cid[2] =  DHCP_HW_TYPE_ETH;// CID type\r
                RtlMoveMemory( &p_cid[3], &p_cid[15], sizeof (ib_net64_t) );\r
                RtlFillMemory(&p_cid[11], 12, 0);\r
-               p_cid[sizeof (ib_net64_t) + 3] = DHCP_OPT_END; //terminate tag \r
+\r
+               RtlCopyMemory( p_dhcp->chaddr, &p_src->mac, sizeof(p_src->mac) );\r
        }\r
        IPOIB_EXIT( IPOIB_DBG_RECV );\r
        return status;\r