Changeset 29709 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
- Timestamp:
- May 20, 2010 5:15:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r29708 r29709 692 692 693 693 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 */ 694 700 LOCAL void vboxNetFltSolarisReportInfo(PVBOXNETFLTINS pThis) 695 701 { … … 710 716 711 717 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 */ 712 726 LOCAL int vboxNetFltSolarisInitVNIC(PVBOXNETFLTINS pThis, PVBOXNETFLTVNIC pVNIC) 713 727 { … … 788 802 789 803 804 /** 805 * Allocate a VNIC structure. 806 * 807 * @returns An allocated VNIC structure or NULL in case of errors. 808 */ 790 809 LOCAL PVBOXNETFLTVNIC vboxNetFltSolarisAllocVNIC(void) 791 810 { … … 808 827 809 828 829 /** 830 * Frees an allocated VNIC. 831 * 832 * @param pVNIC Pointer to the VNIC. 833 */ 810 834 LOCAL void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC) 811 835 { … … 816 840 817 841 /** 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. 821 846 */ 822 847 LOCAL void vboxNetFltSolarisDestroyVNIC(PVBOXNETFLTVNIC pVNIC) … … 932 957 933 958 vboxNetFltSolarisDestroyVNIC(pVNIC); 934 rc = VERR_ INTNET_FLT_IF_FAILED;959 rc = VERR_OPEN_FAILED; 935 960 } 936 961 else … … 938 963 LogRel((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC failed to create VNIC '%s' over '%s' rc=%d Diag=%d\n", pVNIC->szName, 939 964 pThis->szName, rc, Diag)); 965 rc = VERR_INTNET_FLT_VNIC_CREATE_FAILED; 940 966 } 941 967 942 968 vboxNetFltSolarisFreeVNIC(pVNIC); 943 969 944 return RTErrConvertFromErrno(rc);970 return rc; 945 971 } 946 972 … … 1206 1232 } 1207 1233 else 1208 LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to create VNIC \n"));1234 LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to create VNIC rc=%d\n", rc)); 1209 1235 } 1210 1236 else
Note:
See TracChangeset
for help on using the changeset viewer.