VirtualBox

Changeset 36859 in vbox


Ignore:
Timestamp:
Apr 27, 2011 4:05:46 PM (14 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFltBow: activate/quiesce the interface in vboxNetFltPortOsSetActive().

File:
1 edited

Legend:

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

    r36730 r36859  
    11731173{
    11741174    LogFlow((DEVICE_NAME ":vboxNetFltPortOsSetActive pThis=%p fActive=%d\n", pThis, fActive));
     1175
     1176    /*
     1177     * Reactivate/quiesce the interface.
     1178     */
     1179    PVBOXNETFLTVNIC pVNIC = list_head(&pThis->u.s.hVNICs);
     1180    if (fActive)
     1181    {
     1182        for (; pVNIC != NULL; pVNIC = list_next(&pThis->u.s.hVNICs, pVNIC))
     1183            if (pVNIC->hClient)
     1184                mac_rx_set(pVNIC->hClient, vboxNetFltSolarisRecv, pThis);
     1185    }
     1186    else
     1187    {
     1188        for (; pVNIC != NULL; pVNIC = list_next(&pThis->u.s.hVNICs, pVNIC))
     1189            if (pVNIC->hClient)
     1190                mac_rx_clear(pVNIC->hClient);
     1191    }
     1192
     1193
    11751194#if 0
    11761195    if (fActive)
     
    14361455            /*
    14371456             * Set the RX receive function.
     1457             * This shouldn't be necessary as vboxNetFltPortOsSetActive() will be invoked after this, but in the future,
     1458             * if the guest NIC changes MAC address this may not be followed by a vboxNetFltPortOsSetActive() call, so set it here anyway.
    14381459             */
    14391460            mac_rx_set(pVNIC->hClient, vboxNetFltSolarisRecv, pThis);
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