VirtualBox

Changeset 40622 in vbox for trunk/src


Ignore:
Timestamp:
Mar 26, 2012 1:45:57 AM (13 years ago)
Author:
vboxsync
Message:

NAT: tabs.

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

Legend:

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

    r40621 r40622  
    825825        }
    826826        LogFunc(("bind called for socket: %R[natsock]\n", so));
    827         pLnk->pSo = so;
    828         so->so_pvLnk = pLnk;
     827        pLnk->pSo = so;
     828        so->so_pvLnk = pLnk;
    829829#else
    830830        *sockfd = sock;
     
    987987void slirpDeleteLinkSocket(void *pvLnk)
    988988{
    989         struct alias_link *lnk = (struct alias_link *)pvLnk;
    990         lnk->pSo = NULL;
     989        struct alias_link *lnk = (struct alias_link *)pvLnk;
     990        lnk->pSo = NULL;
    991991}
    992992#endif /* !VBOX */
     
    10311031    }
    10321032# else
    1033     if (lnk->pSo) 
     1033    if (lnk->pSo)
    10341034    {
    10351035        la->sockCount--;
    1036         /* should we be more smart, or it's enough to be
    1037          * narrow-minded and just do sofree here
    1038         */
    1039         sofree(la->pData, lnk->pSo);
    1040         lnk->pSo = NULL;
     1036        /* should we be more smart, or it's enough to be
     1037         * narrow-minded and just do sofree here
     1038        */
     1039        sofree(la->pData, lnk->pSo);
     1040        lnk->pSo = NULL;
    10411041    }
    10421042# endif
     
    11141114        lnk->sockfd = -1;
    11151115# else
    1116         lnk->pSo = NULL;
     1116        lnk->pSo = NULL;
    11171117# endif
    11181118#endif
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r40621 r40622  
    189189    /* libalias notification */
    190190    if (so->so_pvLnk)
    191         slirpDeleteLinkSocket(so->so_pvLnk);
     191        slirpDeleteLinkSocket(so->so_pvLnk);
    192192
    193193    /* check if mbuf haven't been already freed  */
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