Changeset 84388 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- May 20, 2020 6:01:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r84386 r84388 1517 1517 RTGCPHYS gcPhysPktHdrNumBuffers = 0; 1518 1518 uint16_t cDescs; 1519 uint 32_t uOffset;1519 uint64_t uOffset; 1520 1520 for (cDescs = uOffset = 0; uOffset < cb; ) 1521 1521 { … … 1864 1864 if (pThisCC->pDrv && fPromiscChanged) 1865 1865 { 1866 uint8_tfPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast;1867 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, fPromiscuous);1866 bool fPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast; 1867 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, (uint8_t)fPromiscuous); 1868 1868 } 1869 1869 … … 1952 1952 1953 1953 uint16_t uVlanId; 1954 uint16_t cbRemaining = pDescChain->cbPhysSend - sizeof(*pCtrlPktHdr);1954 size_t cbRemaining = pDescChain->cbPhysSend - sizeof(*pCtrlPktHdr); 1955 1955 AssertMsgReturn(cbRemaining > sizeof(uVlanId), 1956 1956 ("DESC chain too small for VIRTIO_NET_CTRL_VLAN cmd processing"), VIRTIONET_ERROR); … … 2239 2239 2240 2240 VIRTIONET_PKT_HDR_T PktHdr; 2241 uint32_t uSize = 0;2241 size_t uSize = 0; 2242 2242 2243 2243 Assert(paSegsFromGuest[0].cbSeg >= sizeof(PktHdr));
Note:
See TracChangeset
for help on using the changeset viewer.