Changeset 30100 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
- Timestamp:
- Jun 9, 2010 9:14:56 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r29709 r30100 767 767 { 768 768 mac_unicast_primary_get(hLowerMac, (uint8_t *)pThis->u.s.MacAddr.au8); 769 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNIC phys mac %.6Rhxs\n", &pThis->u.s.MacAddr)); 769 770 vboxNetFltSolarisReportInfo(pThis); 770 771 } 771 772 else 772 773 { 773 LogRel((DEVICE_NAME ":vboxNetFlt OsInitInstancefailed to get lower MAC handle for '%s'\n", pThis->szName));774 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNIC failed to get lower MAC handle for '%s'\n", pThis->szName)); 774 775 rc = ENODEV; 775 776 } … … 781 782 Assert(pVNIC->hInterface); 782 783 Assert(pVNIC->hLinkId); 783 LogFlow((DEVICE_NAME ":vboxNetFlt OsInitInstancesuccessfully initialized VNIC '%s'\n", pVNIC->szName));784 LogFlow((DEVICE_NAME ":vboxNetFltSolarisInitVNIC successfully initialized VNIC '%s'\n", pVNIC->szName)); 784 785 return 0; 785 786 } … … 790 791 } 791 792 else 792 LogRel((DEVICE_NAME ":vboxNetFlt OsInitInstancefailed to set RX callback. rc=%d Diag=%d\n", rc, Diag));793 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNIC failed to set RX callback. rc=%d Diag=%d\n", rc, Diag)); 793 794 794 795 mac_client_close(pVNIC->hClient, 0 /* flags */); … … 796 797 } 797 798 else 798 LogRel((DEVICE_NAME ":vboxNetFlt OsInitInstancefailed to open mac client for '%s' rc=%d\n", pThis->szName, rc));799 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNIC failed to open mac client for '%s' rc=%d\n", pThis->szName, rc)); 799 800 800 801 return RTErrConvertFromErrno(rc); … … 908 909 909 910 /* 910 * Set a random MAC address. 911 * Set a random MAC address for now. It will be changed to the VM interface's 912 * MAC address later, see vboxNetFltPortOsNotifyMacAddress(). 911 913 */ 912 914 RTMAC GuestMac; … … 922 924 int MacSlot = 0; 923 925 int MacLen = sizeof(GuestMac); 924 uint32_t fFlags = 0; /* @todo it should be VNIC_IOC_CREATE_NODUPCHECK */926 uint32_t fFlags = 0; 925 927 926 928 int rc = vnic_create(pVNIC->szName, pThis->szName, &AddrType, &MacLen, GuestMac.au8, &MacSlot, 0 /* Mac-Prefix Length */, 0 /* VLAN-ID */, … … 1058 1060 /* 1059 1061 * This is NOT a VNIC. Just pretend success for now. 1060 * We will create a VNIC per guest interface later (see vboxNetFltPortOsConnectInterface).1062 * We will create a VNIC per VM interface later, see vboxNetFltPortOsConnectInterface(). 1061 1063 */ 1062 1064 pThis->u.s.fIsVNIC = false;
Note:
See TracChangeset
for help on using the changeset viewer.