VirtualBox

Changeset 100128 in vbox for trunk


Ignore:
Timestamp:
Jun 8, 2023 4:45:25 PM (19 months ago)
Author:
vboxsync
Message:

Devices/Network: wip. debug implementation of libslirp driver. bugref:10268

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r99927 r100128  
    773773 ifdef VBOX_WITH_LIBSLIRP
    774774  VBoxDD_LIBS   += $(PATH_STAGE_LIB)/VBox-libslirp$(VBOX_SUFF_LIB)
     775  VBoxDD_LIBS.darwin += resolv
    775776  VBoxDD_DEFS   += VBOX_WITH_LIBSLIRP
    776777  VBoxDD_SOURCES += \
     
    782783
    783784 # --- WARNING! SLIRP MESS AHEAD! ;-) ---
     785 ifndef VBOX_WITH_LIBSLIRP
    784786 VBOX_SLIRP_SOURCES = \
    785787        Network/DrvNAT.cpp \
     
    886888 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
    887889 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
     890 endif
    888891
    889892
  • trunk/src/VBox/Devices/build/VBoxDD.cpp

    r99927 r100128  
    314314        return rc;
    315315#endif
     316#ifdef VBOX_WITH_LIBSLIRP
     317    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNATlibslirp);
     318    if (RT_FAILURE(rc))
     319        return rc;
     320#endif
    316321#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
    317322    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostInterface);
  • trunk/src/VBox/Devices/build/VBoxDD.h

    r99927 r100128  
    137137extern const PDMDRVREG g_DrvIntNet;
    138138extern const PDMDRVREG g_DrvDedicatedNic;
     139#ifndef VBOX_WITH_LIBSLIRP
    139140extern const PDMDRVREG g_DrvNAT;
     141#endif
     142#ifdef VBOX_WITH_LIBSLIRP
     143extern const PDMDRVREG g_DrvNATlibslirp;
     144#endif
    140145#ifdef VBOX_WITH_NETSHAPER
    141146extern const PDMDRVREG g_DrvNetShaper;
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