VirtualBox

Changeset 17710 in vbox


Ignore:
Timestamp:
Mar 11, 2009 4:46:55 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44222
Message:

NetIf/win fixes

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp

    r17700 r17710  
    359359    CheckComRCReturnRC (autoCaller.rc());
    360360
    361     int rc = NetIfEnableStaticIpConfig(this, aIPAddress, aNetworkMask);
     361    int rc = NetIfEnableStaticIpConfig(mVBox, this, aIPAddress, aNetworkMask);
    362362    if (RT_FAILURE(rc))
    363363    {
     
    382382    CheckComRCReturnRC (autoCaller.rc());
    383383
    384     int rc = NetIfEnableStaticIpConfigV6(this, aIPV6Address, aIPV6MaskPrefixLength);
     384    int rc = NetIfEnableStaticIpConfigV6(mVBox, this, aIPV6Address, aIPV6MaskPrefixLength);
    385385    if (RT_FAILURE(rc))
    386386    {
     
    400400    CheckComRCReturnRC (autoCaller.rc());
    401401
    402     int rc = NetIfEnableDynamicIpConfig(this);
     402    int rc = NetIfEnableDynamicIpConfig(mVBox, this);
    403403    if (RT_FAILURE(rc))
    404404    {
     
    419419}
    420420
    421 HRESULT HostNetworkInterface::getVirtualBox(VirtualBox **ppVBox)
    422 {
    423     AutoCaller autoCaller (this);
    424     CheckComRCReturnRC (autoCaller.rc());
    425 
    426     if (!ppVBox)
    427         return E_INVALIDARG;
    428 
    429     *ppVBox = mVBox;
    430     return S_OK;
    431 }
    432 
    433421/* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h

    r17700 r17710  
    8989
    9090    HRESULT setVirtualBox(VirtualBox *pVBox);
    91     HRESULT getVirtualBox(VirtualBox **ppVBox);
    9291private:
    9392    const Bstr mInterfaceName;
  • trunk/src/VBox/Main/include/netif.h

    r17697 r17710  
    7777
    7878int NetIfList(std::list <ComObjPtr <HostNetworkInterface> > &list);
    79 int NetIfEnableStaticIpConfig(HostNetworkInterface * pIf, ULONG ip, ULONG mask);
    80 int NetIfEnableStaticIpConfigV6(HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);
    81 int NetIfEnableDynamicIpConfig(HostNetworkInterface * pIf);
     79int NetIfEnableStaticIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf, ULONG ip, ULONG mask);
     80int NetIfEnableStaticIpConfigV6(VirtualBox *pVbox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);
     81int NetIfEnableDynamicIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf);
    8282int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVbox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
    8383int NetIfRemoveHostOnlyNetworkInterface (VirtualBox *pVbox, IN_GUID aId, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
  • trunk/src/VBox/Main/os2/NetIfList-os2.cpp

    r17419 r17710  
    3838}
    3939
    40 int NetIfEnableStaticIpConfig(HostNetworkInterface * pIf, ULONG ip, ULONG mask)
     40int NetIfEnableStaticIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf, ULONG ip, ULONG mask)
    4141{
    4242    return VERR_NOT_IMPLEMENTED;
    4343}
    4444
    45 int NetIfEnableStaticIpConfigV6(HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     45int NetIfEnableStaticIpConfigV6(VirtualBox *pVbox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    4646{
    4747    return VERR_NOT_IMPLEMENTED;
    4848}
    4949
    50 int NetIfEnableDynamicIpConfig(HostNetworkInterface * pIf)
     50int NetIfEnableDynamicIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf)
    5151{
    5252    return VERR_NOT_IMPLEMENTED;
  • trunk/src/VBox/Main/win/NetIfList-win.cpp

    r17694 r17710  
    22742274}
    22752275
    2276 int NetIfEnableStaticIpConfig(HostNetworkInterface * pIf, ULONG ip, ULONG mask)
     2276int NetIfEnableStaticIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf, ULONG ip, ULONG mask)
    22772277{
    22782278    HRESULT rc;
     
    22812281    if(SUCCEEDED(rc))
    22822282    {
    2283         ComPtr<VirtualBox> vBox;
    2284         rc = pIf->getVirtualBox (vBox.asOutParam());
    2285         if(SUCCEEDED(rc))
     2283//        ComPtr<VirtualBox> vBox;
     2284//        rc = pIf->getVirtualBox (vBox.asOutParam());
     2285//        if(SUCCEEDED(rc))
    22862286        {
    22872287            /* create a progress object */
     
    23322332}
    23332333
    2334 int NetIfEnableStaticIpConfigV6(HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     2334int NetIfEnableStaticIpConfigV6(VirtualBox *vBox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    23352335{
    23362336    HRESULT rc;
     
    23392339    if(SUCCEEDED(rc))
    23402340    {
    2341         ComPtr<VirtualBox> vBox;
    2342         rc = pIf->getVirtualBox (vBox.asOutParam());
    2343         if(SUCCEEDED(rc))
     2341//        ComPtr<VirtualBox> vBox;
     2342//        rc = pIf->getVirtualBox (vBox.asOutParam());
     2343//        if(SUCCEEDED(rc))
    23442344        {
    23452345            /* create a progress object */
     
    23902390}
    23912391
    2392 int NetIfEnableDynamicIpConfig(HostNetworkInterface * pIf)
     2392int NetIfEnableDynamicIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf)
    23932393{
    23942394    HRESULT rc;
     
    23972397    if(SUCCEEDED(rc))
    23982398    {
    2399         ComPtr<VirtualBox> vBox;
    2400         rc = pIf->getVirtualBox (vBox.asOutParam());
    2401         if(SUCCEEDED(rc))
     2399//        ComPtr<VirtualBox> vBox;
     2400//        rc = pIf->getVirtualBox (vBox.asOutParam());
     2401//        if(SUCCEEDED(rc))
    24022402        {
    24032403            /* create a progress object */
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