Changeset 28187 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 12, 2010 9:30:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf.c
r27869 r28187 584 584 struct mbuf * 585 585 #ifndef VBOX 586 m_copym(struct mbuf *m, int off0, int len, int wait)587 #else 588 m_copym(PNATState pData, struct mbuf *m, int off0, int len, int wait)586 m_copym(struct mbuf *m, int off0, int len, int fWait) 587 #else 588 m_copym(PNATState pData, struct mbuf *m, int off0, int len, int fWait) 589 589 #endif 590 590 { … … 596 596 KASSERT(off >= 0, ("m_copym, negative off %d", off)); 597 597 KASSERT(len >= 0, ("m_copym, negative len %d", len)); 598 MBUF_CHECKSLEEP( wait);598 MBUF_CHECKSLEEP(fWait); 599 599 if (off == 0 && m->m_flags & M_PKTHDR) 600 600 copyhdr = 1; … … 615 615 } 616 616 if (copyhdr) 617 MGETHDR(n, wait, m->m_type);617 MGETHDR(n, fWait, m->m_type); 618 618 else 619 MGET(n, wait, m->m_type);619 MGET(n, fWait, m->m_type); 620 620 *np = n; 621 621 if (n == NULL) 622 622 goto nospace; 623 623 if (copyhdr) { 624 if (!m_dup_pkthdr(n, m, wait))624 if (!m_dup_pkthdr(n, m, fWait)) 625 625 goto nospace; 626 626 if (len == M_COPYALL) … … 1285 1285 struct mbuf * 1286 1286 #ifndef VBOX 1287 m_split(struct mbuf *m0, int len0, int wait)1288 #else 1289 m_split(PNATState pData, struct mbuf *m0, int len0, int wait)1287 m_split(struct mbuf *m0, int len0, int fWait) 1288 #else 1289 m_split(PNATState pData, struct mbuf *m0, int len0, int fWait) 1290 1290 #endif 1291 1291 { … … 1293 1293 u_int len = len0, remain; 1294 1294 1295 MBUF_CHECKSLEEP( wait);1295 MBUF_CHECKSLEEP(fWait); 1296 1296 for (m = m0; m && len > m->m_len; m = m->m_next) 1297 1297 len -= m->m_len; … … 1300 1300 remain = m->m_len - len; 1301 1301 if (m0->m_flags & M_PKTHDR) { 1302 MGETHDR(n, wait, m0->m_type);1302 MGETHDR(n, fWait, m0->m_type); 1303 1303 if (n == NULL) 1304 1304 return (NULL); … … 1312 1312 MH_ALIGN(n, 0); 1313 1313 #ifndef VBOX 1314 n->m_next = m_split(m, len, wait);1315 #else 1316 n->m_next = m_split(pData, m, len, wait);1314 n->m_next = m_split(m, len, fWait); 1315 #else 1316 n->m_next = m_split(pData, m, len, fWait); 1317 1317 #endif 1318 1318 if (n->m_next == NULL) { … … 1334 1334 return (n); 1335 1335 } else { 1336 MGET(n, wait, m->m_type);1336 MGET(n, fWait, m->m_type); 1337 1337 if (n == NULL) 1338 1338 return (NULL);
Note:
See TracChangeset
for help on using the changeset viewer.