Changeset 15914 in vbox for trunk/src/VBox
- Timestamp:
- Jan 13, 2009 1:29:45 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r15890 r15914 510 510 rc = pThis->pPort->pfnReceive(pThis->pPort, pItem->pu8Buf, pItem->cb); 511 511 512 #if 0 512 513 rc = RTReqAlloc(pThis->pReqQueue, &pReq, RTREQTYPE_INTERNAL); 513 514 AssertReleaseRC(rc); … … 518 519 pReq->fFlags = RTREQFLAGS_VOID; 519 520 AssertRC(rc); 521 #else 522 /*Copy buffer again, till seeking good way of syncronization with slirp mbuf management code*/ 523 AssertRelease(pItem->mbuf == NULL); 524 RTMemFree((void *)pItem->pu8Buf); 525 #endif 520 526 return RT_SUCCESS(rc); 521 527 } -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15891 r15914 1114 1114 #ifdef VBOX_WITH_SIMPLIFIED_SLIRP_SYNC 1115 1115 struct ethhdr *eh; 1116 uint8_t *buf = RTMemAlloc(1600); 1116 1117 m->m_data -= if_maxlinkhdr; 1117 1118 m->m_len += ETH_HLEN; … … 1134 1135 #ifdef VBOX_WITH_SIMPLIFIED_SLIRP_SYNC 1135 1136 eh->h_proto = htons(eth_proto); 1137 #if 0 1136 1138 slirp_output(pData->pvUser, m, mtod(m, uint8_t *), m->m_len); 1139 #else 1140 memcpy(buf, mtod(m, uint8_t *), m->m_len); 1141 slirp_output(pData->pvUser, NULL, buf, m->m_len); 1142 m_free(pData, m); 1143 #endif 1137 1144 #else 1138 1145 eh->h_proto = htons(ETH_P_IP);
Note:
See TracChangeset
for help on using the changeset viewer.