VirtualBox

Ignore:
Timestamp:
Jun 9, 2010 9:14:56 AM (14 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFltBow: log and comments.

File:
1 edited

Legend:

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

    r29709 r30100  
    767767                {
    768768                    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));
    769770                    vboxNetFltSolarisReportInfo(pThis);
    770771                }
    771772                else
    772773                {
    773                     LogRel((DEVICE_NAME ":vboxNetFltOsInitInstance failed 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));
    774775                    rc = ENODEV;
    775776                }
     
    781782                Assert(pVNIC->hInterface);
    782783                Assert(pVNIC->hLinkId);
    783                 LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance successfully initialized VNIC '%s'\n", pVNIC->szName));
     784                LogFlow((DEVICE_NAME ":vboxNetFltSolarisInitVNIC successfully initialized VNIC '%s'\n", pVNIC->szName));
    784785                return 0;
    785786            }
     
    790791        }
    791792        else
    792             LogRel((DEVICE_NAME ":vboxNetFltOsInitInstance failed 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));
    793794
    794795        mac_client_close(pVNIC->hClient, 0 /* flags */);
     
    796797    }
    797798    else
    798         LogRel((DEVICE_NAME ":vboxNetFltOsInitInstance failed 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));
    799800
    800801    return RTErrConvertFromErrno(rc);
     
    908909
    909910    /*
    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().
    911913     */
    912914    RTMAC GuestMac;
     
    922924    int MacSlot                   = 0;
    923925    int MacLen                    = sizeof(GuestMac);
    924     uint32_t fFlags               = 0; /* @todo it should be VNIC_IOC_CREATE_NODUPCHECK */
     926    uint32_t fFlags               = 0;
    925927
    926928    int rc = vnic_create(pVNIC->szName, pThis->szName, &AddrType, &MacLen, GuestMac.au8, &MacSlot, 0 /* Mac-Prefix Length */, 0 /* VLAN-ID */,
     
    10581060            /*
    10591061             * 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().
    10611063             */
    10621064            pThis->u.s.fIsVNIC = false;
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