Changeset 101400 in vbox
- Timestamp:
- Oct 10, 2023 8:39:16 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r100883 r101400 2295 2295 Log7Func(("[%s] Guest provided %d unicast MAC Table entries\n", pThis->szInst, cMacs)); 2296 2296 2297 AssertMsgReturn(cMacs <= RT_ELEMENTS(pThis->aMacUnicastFilter), 2298 ("Guest provided Unicast MAC filter table exceeds hardcoded table size"), VIRTIONET_ERROR); 2299 2297 2300 if (cMacs) 2298 2301 { 2299 2302 uint32_t cbMacs = cMacs * sizeof(RTMAC); 2300 2301 AssertMsgReturn(cbMacs <= sizeof(pThis->aMacUnicastFilter) / sizeof(RTMAC),2302 ("Guest provided Unicast MAC filter table exceeds hardcoded table size"), VIRTIONET_ERROR);2303 2303 2304 2304 AssertMsgReturn(cbRemaining >= cbMacs, … … 2322 2322 Log10Func(("[%s] Guest provided %d multicast MAC Table entries\n", pThis->szInst, cMacs)); 2323 2323 2324 AssertMsgReturn(cMacs <= RT_ELEMENTS(pThis->aMacMulticastFilter), 2325 ("Guest provided Unicast MAC filter table exceeds hardcoded table size"), VIRTIONET_ERROR); 2326 2324 2327 if (cMacs) 2325 2328 { 2326 2329 uint32_t cbMacs = cMacs * sizeof(RTMAC); 2327 2328 AssertMsgReturn(cbMacs <= sizeof(pThis->aMacMulticastFilter) / sizeof(RTMAC),2329 ("Guest provided Unicast MAC filter table exceeds hardcoded table size"), VIRTIONET_ERROR);2330 2330 2331 2331 AssertMsgReturn(cbRemaining >= cbMacs, … … 2375 2375 size_t cbRemaining = pVirtqBuf->cbPhysSend; 2376 2376 2377 AssertMsgReturn(cbRemaining > sizeof(cVirtqPairs),2377 AssertMsgReturn(cbRemaining >= sizeof(cVirtqPairs), 2378 2378 ("DESC chain too small for VIRTIONET_CTRL_MQ cmd processing"), VIRTIONET_ERROR); 2379 2379 … … 2381 2381 virtioCoreR3VirtqBufDrain(&pThis->Virtio, pVirtqBuf, &cVirtqPairs, sizeof(cVirtqPairs)); 2382 2382 2383 AssertMsgReturn(cVirtqPairs >VIRTIONET_MAX_QPAIRS,2383 AssertMsgReturn(cVirtqPairs <= VIRTIONET_MAX_QPAIRS, 2384 2384 ("[%s] Guest CTRL MQ virtq pair count out of range [%d])\n", pThis->szInst, cVirtqPairs), VIRTIONET_ERROR); 2385 2385
Note:
See TracChangeset
for help on using the changeset viewer.