VirtualBox

Changeset 106348 in vbox for trunk


Ignore:
Timestamp:
Oct 16, 2024 9:25:04 AM (7 weeks ago)
Author:
vboxsync
Message:

Devices/Network: Beginnings of a USB/NCM network interface emulation for Windows/ARM guests (they don't support any of our emulated NICs), bugref:10779 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/UsbEth.cpp

    r106345 r106348  
    13031303    pNth16->wHeaderLength = sizeof(*pNth16);
    13041304    pNth16->wSequence     = pThis->idSequence++;
    1305     pNth16->wBlockLength  = sizeof(*pNth16) + sizeof(*pNdp16) + cb;
     1305    pNth16->wBlockLength  = (uint16_t)(sizeof(*pNth16) + sizeof(*pNdp16) + cb);
    13061306    pNth16->wNdpIndex     = sizeof(*pNth16);
    13071307
     
    13111311    pNdp16->wNextNdpIndex = 0;
    13121312    pNdp16->DataGram0.wDatagramIndex  = sizeof(*pNth16) + sizeof(*pNdp16);
    1313     pNdp16->DataGram0.wDatagramLength = cb;
     1313    pNdp16->DataGram0.wDatagramLength = (uint16_t)cb;
    13141314    pNdp16->DataGram1.wDatagramIndex  = 0;
    13151315    pNdp16->DataGram1.wDatagramLength = 0;
     
    13181318    memcpy(pNdp16 + 1, pvBuf, cb);
    13191319
    1320     pUrb->cbData = sizeof(*pNth16) + sizeof(*pNdp16) + cb;
     1320    pUrb->cbData = (uint32_t)(sizeof(*pNth16) + sizeof(*pNdp16) + cb);
    13211321    usbEthLinkDone(pThis, pUrb);
    13221322    RTCritSectLeave(&pThis->CritSect);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette