Changeset 18457 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Mar 28, 2009 4:49:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp
r17772 r18457 295 295 * it's not supposed to happen here in this testcase. 296 296 */ 297 int rc = tstIntNetWriteFrame(pBuf, &pBuf->Send, pvFrame, cbFrame);297 int rc = tstIntNetWriteFrame(pBuf, &pBuf->Send, pvFrame, (uint32_t)cbFrame); 298 298 if (RT_SUCCESS(rc)) 299 299 { … … 421 421 422 422 423 static uint16_t icmpChecksum(PRTNETICMPV4HDR pHdr, int cbHdr)423 static uint16_t icmpChecksum(PRTNETICMPV4HDR pHdr, size_t cbHdr) 424 424 { 425 int cbLeft = cbHdr;425 size_t cbLeft = cbHdr; 426 426 uint16_t *pbSrc = (uint16_t *)pHdr; 427 427 uint16_t oddByte = 0; … … 481 481 pIpHdr->ip_hl = sizeof(*pIpHdr) / sizeof(uint32_t); 482 482 pIpHdr->ip_tos = 0; 483 pIpHdr->ip_len = RT_H2BE_U16( sizeof(*pIcmpEcho) + cbPad + sizeof(*pIpHdr));483 pIpHdr->ip_len = RT_H2BE_U16((uint16_t)(sizeof(*pIcmpEcho) + cbPad + sizeof(*pIpHdr))); 484 484 pIpHdr->ip_id = (uint16_t)RTRandU32(); 485 485 pIpHdr->ip_off = 0;
Note:
See TracChangeset
for help on using the changeset viewer.