[IPOIB] IPoIB PXE boot support: Don't truncate DHCP options.
[mirror/winof/.git] / 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