Changeset 28188 in vbox for trunk/src/VBox/Devices/Network/slirp/bsd/kern
- Timestamp:
- Apr 12, 2010 9:33:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf2.c
r27869 r28188 322 322 static struct mbuf * 323 323 #ifndef VBOX 324 m_dup1(struct mbuf *m, int off, int len, int wait)325 #else 326 m_dup1(PNATState pData, struct mbuf *m, int off, int len, int wait)324 m_dup1(struct mbuf *m, int off, int len, int fWait) 325 #else 326 m_dup1(PNATState pData, struct mbuf *m, int off, int len, int fWait) 327 327 #endif 328 328 { … … 339 339 if (copyhdr == 1) 340 340 #ifndef VBOX 341 n = m_getcl( wait, m->m_type, M_PKTHDR);342 #else 343 n = m_getcl(pData, wait, m->m_type, M_PKTHDR);341 n = m_getcl(fWait, m->m_type, M_PKTHDR); 342 #else 343 n = m_getcl(pData, fWait, m->m_type, M_PKTHDR); 344 344 #endif 345 345 else 346 346 #ifndef VBOX 347 n = m_getcl( wait, m->m_type, 0);348 #else 349 n = m_getcl(pData, wait, m->m_type, 0);347 n = m_getcl(fWait, m->m_type, 0); 348 #else 349 n = m_getcl(pData, fWait, m->m_type, 0); 350 350 #endif 351 351 } else { 352 352 if (copyhdr == 1) 353 353 #ifndef VBOX 354 n = m_gethdr( wait, m->m_type);355 #else 356 n = m_gethdr(pData, wait, m->m_type);354 n = m_gethdr(fWait, m->m_type); 355 #else 356 n = m_gethdr(pData, fWait, m->m_type); 357 357 #endif 358 358 else 359 359 #ifndef VBOX 360 n = m_get( wait, m->m_type);361 #else 362 n = m_get(pData, wait, m->m_type);360 n = m_get(fWait, m->m_type); 361 #else 362 n = m_get(pData, fWait, m->m_type); 363 363 #endif 364 364 } … … 366 366 return NULL; /* ENOBUFS */ 367 367 368 if (copyhdr && !m_dup_pkthdr(n, m, wait)) {368 if (copyhdr && !m_dup_pkthdr(n, m, fWait)) { 369 369 #ifndef VBOX 370 370 m_free(n); … … 396 396 /* Get a packet tag structure along with specified data following. */ 397 397 struct m_tag * 398 m_tag_alloc(u_int32_t cookie, int type, int len, int wait)398 m_tag_alloc(u_int32_t cookie, int type, int len, int fWait) 399 399 { 400 400 struct m_tag *t; 401 401 402 MBUF_CHECKSLEEP( wait);402 MBUF_CHECKSLEEP(fWait); 403 403 if (len < 0) 404 404 return NULL; 405 405 #ifndef VBOX 406 t = malloc(len + sizeof(struct m_tag), M_PACKET_TAGS, wait);406 t = malloc(len + sizeof(struct m_tag), M_PACKET_TAGS, fWait); 407 407 #else 408 408 t = RTMemAllocZ(len + sizeof(struct m_tag));
Note:
See TracChangeset
for help on using the changeset viewer.