VirtualBox

儲存庫 vbox 的更動 19317


忽略:
時間撮記:
2009-5-4 上午03:38:31 (16 年 以前)
作者:
vboxsync
訊息:

DRV: DrvNAT is switch off-able

位置:
trunk/src/VBox/Devices
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Builtins.cpp

    r19183 r19317  
    223223    if (RT_FAILURE(rc))
    224224        return rc;
    225 #ifndef RT_OS_L4
     225#if !defined(RT_OS_L4)
     226# if !defined(VBOX_WITH_NAT_SERVICE)
    226227    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNAT);
    227228    if (RT_FAILURE(rc))
    228229        return rc;
     230# endif
    229231#endif
    230232#if defined(RT_OS_LINUX)
  • trunk/src/VBox/Devices/Builtins.h

    r19183 r19317  
    105105#endif
    106106extern const PDMDRVREG g_DrvIntNet;
     107#ifndef VBOX_WITH_NAT_SERVICE
    107108extern const PDMDRVREG g_DrvNAT;
     109#endif
    108110extern const PDMDRVREG g_DrvNetSniffer;
    109111extern const PDMDRVREG g_DrvAUDIO;
  • trunk/src/VBox/Devices/Makefile.kmk

    r19272 r19317  
    136136endif
    137137ifdef VBOX_WITH_ISCSI
    138  VBoxDD_DEFS           += VBOX_WITH_ISCSI
     138 VBoxDD_DEFS           +=  VBOX_WITH_ISCSI
    139139 ifdef VBOX_WITH_INIP
    140140  VBoxDD_DEFS          += VBOX_WITH_INIP
     
    626626Drivers_DEFS      += VBOX_WITH_FAULT_INJECTION
    627627endif
     628
    628629Drivers_INCS      := \
    629         $(PATH_SUB_CURRENT) \
    630         Network/slirp
     630        $(PATH_SUB_CURRENT)
    631631Drivers_SOURCES    = \
    632632        Audio/audio.c \
     
    651651        Network/Pcap.cpp
    652652
     653Drivers_INCS += Network/slirp
     654
     655ifndef VBOX_WITH_NAT_SERVICE
    653656VBOX_SLIRP_SOURCES = \
    654657        Network/DrvNAT.cpp \
     
    674677VBOX_WITH_SLIRP_DNS_PROXY=1
    675678
    676 ifdef VBOX_WITH_SLIRP_DNS_PROXY
     679 ifdef VBOX_WITH_SLIRP_DNS_PROXY
    677680VBOX_SLIRP_SOURCES += \
    678681        Network/slirp/dnsproxy/hash.c \
    679682        Network/slirp/dnsproxy/dnsproxy.c
    680 endif
     683 endif
    681684
    682685# some day will be deleted
     
    684687
    685688Drivers_SOURCES += $(VBOX_SLIRP_SOURCES)
    686 define def_vbox_slirp_cflags
    687   $(file)_DEFS += \
     689 define def_vbox_slirp_cflags
     690   $(file)_DEFS += \
    688691      $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
    689692      $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
     
    691694      $(if $(VBOX_WITH_SLIRP_DNS_PROXY),VBOX_WITH_SLIRP_DNS_PROXY,)     \
    692695      $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
    693  ifeq ($(KBUILD_TARGET),win)
    694   $(file)_CFLAGS = -wd4018
    695  else
    696   $(file)_CFLAGS = -Wno-sign-compare
    697  endif
    698 endef
     696  ifeq ($(KBUILD_TARGET),win)
     697   $(file)_CFLAGS = -wd4018
     698  else
     699   $(file)_CFLAGS = -Wno-sign-compare
     700  endif
     701 endef
    699702$(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(def_vbox_slirp_cflags)))
     703else
     704Drivers_DEFS += VBOX_WITH_NAT_SERVICE
     705VBoxDD_DEFS  += VBOX_WITH_NAT_SERVICE
     706endif
    700707
    701708# -- OS specific --
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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