VirtualBox

Changeset 85341 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Jul 14, 2020 1:45:21 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139321
Message:

IPRt/dbgkrnlinfo-r0drv-darwin.cpp: Don't use deprecated network KPIs (>=10.15) as standard candles. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp

    r85340 r85341  
    3333# include <sys/kauth.h>
    3434RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */
    35 # include <sys/kpi_mbuf.h>
    36 # include <net/kpi_interfacefilter.h>
    37 # include <sys/kpi_socket.h>
     35# if MAC_OS_X_VERSION_MIN_REQUIRED < 101500
     36#  include <sys/kpi_mbuf.h>
     37#  include <net/kpi_interfacefilter.h>
     38#  include <sys/kpi_socket.h>
     39# endif
    3840# include <sys/kpi_socketfilter.h>
    3941RT_C_DECLS_END
     
    370372        KNOWN_ENTRY(copystr),
    371373        KNOWN_ENTRY(current_proc),
    372         KNOWN_ENTRY(ifnet_hdrlen),
    373         KNOWN_ENTRY(ifnet_set_promiscuous),
    374374        KNOWN_ENTRY(kauth_getuid),
    375375#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
     
    378378        KNOWN_ENTRY(kauth_cred_rele),
    379379#endif
    380         KNOWN_ENTRY(mbuf_data),
    381380        KNOWN_ENTRY(msleep),
    382381        KNOWN_ENTRY(nanotime),
     
    384383        KNOWN_ENTRY(proc_pid),
    385384#if MAC_OS_X_VERSION_MIN_REQUIRED < 101500
     385        KNOWN_ENTRY(mbuf_data),
     386        KNOWN_ENTRY(ifnet_hdrlen),
     387        KNOWN_ENTRY(ifnet_set_promiscuous),
    386388        KNOWN_ENTRY(sock_accept),
    387389        KNOWN_ENTRY(sockopt_name),
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette