VirtualBox

Ignore:
Timestamp:
Jan 23, 2009 11:56:46 AM (16 years ago)
Author:
vboxsync
Message:

#3419: No promisc for WiFi on Darwin either.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r15527 r16195  
    10511051    {
    10521052        /*
     1053         * If there is no need to set promiscuous mode the only thing
     1054         * we have to do in order to preserve the backward compatibility
     1055         * is to try bringing the interface up if it gets activated.
     1056         */
     1057        if (pThis->fDisablePromiscuous)
     1058        {
     1059            Log(("vboxNetFltPortOsSetActive: promisc disabled, do nothing.\n"));
     1060            if (fActive)
     1061            {
     1062                /*
     1063                 * Try bring the interface up and running if it's down.
     1064                 */
     1065                u_int16_t fIf = ifnet_flags(pIfNet);
     1066                if ((fIf & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING))
     1067                {
     1068                    ifnet_set_flags(pIfNet, IFF_UP, IFF_UP);
     1069                    ifnet_ioctl(pIfNet, 0, SIOCSIFFLAGS, NULL);
     1070                }
     1071            }
     1072            vboxNetFltDarwinReleaseIfNet(pThis, pIfNet);
     1073            return;
     1074        }
     1075        /*
    10531076         * This api is a bit weird, the best reference is the code.
    10541077         *
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