VirtualBox

Changeset 23178 in vbox for trunk/src


Ignore:
Timestamp:
Sep 21, 2009 10:35:35 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52602
Message:

NAT: makes bsd mbufs buildable on Windows.

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_output.c

    r23154 r23178  
    172172   
    173173        {
     174#ifndef VBOX_WITH_SLIRP_BSD_MBUF
    174175            STAM_PROFILE_START(&pData->StatALIAS_output, a);
    175 #ifndef VBOX_WITH_SLIRP_BSD_MBUF
    176176            rc = LibAliasOut((m->m_la ? m->m_la : pData->proxy_alias),
    177177                mtod(m, char *), m->m_len);
     
    179179#else
    180180            struct m_tag *t;
     181            STAM_PROFILE_START(&pData->StatALIAS_output, a);
    181182            if (t = m_tag_find(m, PACKET_TAG_ALIAS, NULL) != 0)
    182183            {
     
    228229#endif
    229230            {
     231#ifdef VBOX_WITH_SLIRP_BSD_MBUF
     232                struct m_tag *t;
     233                char *tmpbuf = NULL;
     234                int tmplen = 0;
     235#endif
    230236                int rc;
    231237                HTONS(ip->ip_len);
     
    237243                    mtod(m, char *), m->m_len);
    238244#else
    239                 struct m_tag *t;
    240                 char *tmpbuf = NULL;
    241                 int tmplen = 0;
    242245                if (m->m_next != NULL)
    243246                {
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r23154 r23178  
    568568        int size;
    569569#endif
     570        int rc = 0;
     571        static int signaled = 0;
    570572
    571573        QSOCKET_LOCK(udb);
     
    589591        /* if (so->so_fport != htons(53)) */
    590592        {
    591             static int signaled = 0;
    592             int rc = ioctlsocket(so->s, FIONREAD, &n);
     593            rc = ioctlsocket(so->s, FIONREAD, &n);
    593594           
    594595            if (rc == -1 && signaled == 0)
     
    616617        * 3. attach buffer to allocated header mbuf
    617618        */
    618         static int signaled = 0;
    619         int rc = ioctlsocket(so->s, FIONREAD, &n);
     619        rc = ioctlsocket(so->s, FIONREAD, &n);
    620620       
    621621        if (rc == -1 && signaled == 0)
Note: See TracChangeset for help on using the changeset viewer.

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