VirtualBox

Ignore:
Timestamp:
Apr 12, 2010 9:33:13 AM (15 years ago)
Author:
vboxsync
Message:

NAT: warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf2.c

    r27869 r28188  
    322322static struct mbuf *
    323323#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)
     324m_dup1(struct mbuf *m, int off, int len, int fWait)
     325#else
     326m_dup1(PNATState pData, struct mbuf *m, int off, int len, int fWait)
    327327#endif
    328328{
     
    339339                if (copyhdr == 1)
    340340#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);
    344344#endif
    345345                else
    346346#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);
    350350#endif
    351351        } else {
    352352                if (copyhdr == 1)
    353353#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);
    357357#endif
    358358                else
    359359#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);
    363363#endif
    364364        }
     
    366366                return NULL; /* ENOBUFS */
    367367
    368         if (copyhdr && !m_dup_pkthdr(n, m, wait)) {
     368        if (copyhdr && !m_dup_pkthdr(n, m, fWait)) {
    369369#ifndef VBOX
    370370                m_free(n);
     
    396396/* Get a packet tag structure along with specified data following. */
    397397struct m_tag *
    398 m_tag_alloc(u_int32_t cookie, int type, int len, int wait)
     398m_tag_alloc(u_int32_t cookie, int type, int len, int fWait)
    399399{
    400400        struct m_tag *t;
    401401
    402         MBUF_CHECKSLEEP(wait);
     402        MBUF_CHECKSLEEP(fWait);
    403403        if (len < 0)
    404404                return NULL;
    405405#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);
    407407#else
    408408        t = RTMemAllocZ(len + sizeof(struct m_tag));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette