VirtualBox

Ignore:
Timestamp:
May 20, 2010 5:15:39 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFltBow: comments, added one error code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r29708 r29709  
    692692
    693693
     694/**
     695 * Report capabilities and MAC address to IntNet.
     696 *
     697 * @param   pThis           The instance.
     698 * @remarks Retains the instance while doing it's job.
     699 */
    694700LOCAL void vboxNetFltSolarisReportInfo(PVBOXNETFLTINS pThis)
    695701{
     
    710716
    711717
     718/**
     719 * Initialize a VNIC.
     720 *
     721 * @param   pThis           The instance.
     722 * @param   pVNIC           Pointer to the VNIC.
     723 *
     724 * @returns Solaris error code (errno).
     725 */
    712726LOCAL int vboxNetFltSolarisInitVNIC(PVBOXNETFLTINS pThis, PVBOXNETFLTVNIC pVNIC)
    713727{
     
    788802
    789803
     804/**
     805 * Allocate a VNIC structure.
     806 *
     807 * @returns An allocated VNIC structure or NULL in case of errors.
     808 */
    790809LOCAL PVBOXNETFLTVNIC vboxNetFltSolarisAllocVNIC(void)
    791810{
     
    808827
    809828
     829/**
     830 * Frees an allocated VNIC.
     831 *
     832 * @param   pVNIC           Pointer to the VNIC.
     833 */
    810834LOCAL void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC)
    811835{
     
    816840
    817841/**
    818  * Destroy a created VNIC.
    819  *
    820  * @param   pThis           The VM connection instance.
     842 * Destroy a created VNIC if it was created by us, or just
     843 * de-initializes the VNIC freeing up resources handles.
     844 *
     845 * @param   pVNIC           Pointer to the VNIC.
    821846 */
    822847LOCAL void vboxNetFltSolarisDestroyVNIC(PVBOXNETFLTVNIC pVNIC)
     
    932957
    933958        vboxNetFltSolarisDestroyVNIC(pVNIC);
    934         rc = VERR_INTNET_FLT_IF_FAILED;
     959        rc = VERR_OPEN_FAILED;
    935960    }
    936961    else
     
    938963        LogRel((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC failed to create VNIC '%s' over '%s' rc=%d Diag=%d\n", pVNIC->szName,
    939964                    pThis->szName, rc, Diag));
     965        rc = VERR_INTNET_FLT_VNIC_CREATE_FAILED;
    940966    }
    941967
    942968    vboxNetFltSolarisFreeVNIC(pVNIC);
    943969
    944     return RTErrConvertFromErrno(rc);
     970    return rc;
    945971}
    946972
     
    12061232        }
    12071233        else
    1208             LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to create VNIC\n"));
     1234            LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to create VNIC rc=%d\n", rc));
    12091235    }
    12101236    else
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