Changeset 36874 in vbox for trunk/src/VBox
- Timestamp:
- Apr 28, 2011 11:49:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r36859 r36874 226 226 /** The unicast address handle. */ 227 227 mac_unicast_handle_t hUnicast; 228 /** The promiscuous handle (currently unused). */229 mac_promisc_handle_t hPromiscuous;230 228 /* The VNIC name. */ 231 229 char szName[MAXLINKNAMESPECIFIER]; … … 943 941 pVNIC->hClient = NULL; 944 942 pVNIC->hUnicast = NULL; 945 pVNIC->hPromiscuous = NULL;946 943 RT_ZERO(pVNIC->szName); 947 944 list_link_init(&pVNIC->hNode); … … 955 952 * @param pVNIC Pointer to the VNIC. 956 953 */ 957 LOCAL void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC)954 LOCAL inline void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC) 958 955 { 959 956 if (pVNIC) … … 972 969 if (pVNIC) 973 970 { 974 if (pVNIC->hPromiscuous)975 {976 mac_promisc_remove(pVNIC->hPromiscuous);977 pVNIC->hPromiscuous = NULL;978 }979 980 971 if (pVNIC->hClient) 981 972 { … … 1190 1181 mac_rx_clear(pVNIC->hClient); 1191 1182 } 1192 1193 1194 #if 01195 if (fActive)1196 {1197 /*1198 * Activate promiscuous mode.1199 */1200 if (!pThis->u.s.hPromiscuous)1201 {1202 int rc = mac_promisc_add(pThis->u.s.hClient, MAC_CLIENT_PROMISC_ALL, vboxNetFltSolarisRecv, pThis, &pThis->u.s.hPromiscuous,1203 MAC_PROMISC_FLAGS_NO_TX_LOOP);1204 if (rc)1205 LogRel((DEVICE_NAME ":vboxNetFltPortOsSetActive cannot enable promiscuous mode for '%s' rc=%d\n", pThis->szName, rc));1206 }1207 }1208 else1209 {1210 /*1211 * Deactivate promiscuous mode.1212 */1213 if (pThis->u.s.hPromiscuous)1214 {1215 mac_promisc_remove(pThis->u.s.hPromiscuous);1216 pThis->u.s.hPromiscuous = NULL;1217 }1218 }1219 #endif1220 1183 } 1221 1184
Note:
See TracChangeset
for help on using the changeset viewer.