Changeset 90804 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin
- Timestamp:
- Aug 23, 2021 7:08:53 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146439
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r85344 r90804 752 752 uint64_t NanoTS = RTTimeSystemNanoTS(); 753 753 LogFlow(("vboxNetFltDarwinIffDetached: pThis=%p NanoTS=%RU64 (%d)\n", 754 pThis, NanoTS, VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1));754 pThis, NanoTS, RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1)); 755 755 756 756 Assert(!pThis->fDisconnectedFromHost); … … 771 771 772 772 pIfNet = ASMAtomicUoReadPtrT(&pThis->u.s.pIfNet, ifnet_t); 773 int cPromisc = VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : - 1;773 int cPromisc = RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : - 1; 774 774 775 775 ASMAtomicUoWriteNullPtr(&pThis->u.s.pIfNet); … … 836 836 * Watch out for the interface going online / offline. 837 837 */ 838 if ( 839 && 840 && 841 && 842 && 838 if ( RT_VALID_PTR(pThis) 839 && RT_VALID_PTR(pEvMsg) 840 && pEvMsg->vendor_code == KEV_VENDOR_APPLE 841 && pEvMsg->kev_class == KEV_NETWORK_CLASS 842 && pEvMsg->kev_subclass == KEV_DL_SUBCLASS) 843 843 { 844 844 if (pThis->u.s.pIfNet == pIfNet) … … 881 881 } 882 882 else 883 Log(("vboxNetFltDarwinIffEvent: pThis->u.s.pIfNet=%p pIfNet=%p (%d)\n", pThis->u.s.pIfNet, pIfNet, VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1));884 } 885 else if ( VALID_PTR(pEvMsg))883 Log(("vboxNetFltDarwinIffEvent: pThis->u.s.pIfNet=%p pIfNet=%p (%d)\n", pThis->u.s.pIfNet, pIfNet, RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1)); 884 } 885 else if (RT_VALID_PTR(pEvMsg)) 886 886 Log(("vboxNetFltDarwinIffEvent: vendor_code=%#x kev_class=%#x kev_subclass=%#x event_code=%#x\n", 887 887 pEvMsg->vendor_code, pEvMsg->kev_class, pEvMsg->kev_subclass, pEvMsg->event_code));
Note:
See TracChangeset
for help on using the changeset viewer.