Changeset 16195 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Jan 23, 2009 11:56:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r15527 r16195 1051 1051 { 1052 1052 /* 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 /* 1053 1076 * This api is a bit weird, the best reference is the code. 1054 1077 *
Note:
See TracChangeset
for help on using the changeset viewer.