Changeset 98417 in vbox for trunk/src/VBox
- Timestamp:
- Feb 1, 2023 4:25:48 PM (23 months ago)
- Location:
- trunk/src/VBox/NetworkServices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Makefile.kmk
r98155 r98417 37 37 # 38 38 ifdef VBOX_WITH_HARDENING 39 PROGRAMS += VBoxNetDHCPHardened40 VBoxNetDHCPHardened_TEMPLATE = VBoxR3HardenedExe41 VBoxNetDHCPHardened_NAME= VBoxNetDHCP42 VBoxNetDHCPHardened_SOURCES= VBoxNetDhcpdHardened.cpp43 VBoxNetDHCPHardened_LDFLAGS.win = /SUBSYSTEM:windows44 $(call VBOX_SET_VER_INFO_DLL,VBoxNetDHCPHardened,VirtualBox DHCP Server,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.39 PROGRAMS += VBoxNetDHCPHardened 40 VBoxNetDHCPHardened_TEMPLATE = VBoxR3HardenedExe 41 VBoxNetDHCPHardened_NAME = VBoxNetDHCP 42 VBoxNetDHCPHardened_SOURCES = VBoxNetDhcpdHardened.cpp 43 VBoxNetDHCPHardened_LDFLAGS.win = /SUBSYSTEM:windows 44 $(call VBOX_SET_VER_INFO_DLL,VBoxNetDHCPHardened,VirtualBox DHCP Server,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 45 45 endif 46 46 … … 50 50 # 51 51 ifdef VBOX_WITH_HARDENING 52 DLLS+= VBoxNetDHCP53 VBoxNetDHCP_TEMPLATE := VBoxR3Dll52 DLLS += VBoxNetDHCP 53 VBoxNetDHCP_TEMPLATE := VBoxR3Dll 54 54 else 55 PROGRAMS += VBoxNetDHCP56 VBoxNetDHCP_TEMPLATE := VBoxR3Exe55 PROGRAMS += VBoxNetDHCP 56 VBoxNetDHCP_TEMPLATE := VBoxR3Exe 57 57 endif 58 58 … … 61 61 62 62 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 63 VBoxNetDHCP_DEFS= KBUILD_TYPE="$(KBUILD_TYPE)"63 VBoxNetDHCP_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)" 64 64 else 65 VBoxNetDHCP_DEFS= KBUILD_TYPE=\"$(KBUILD_TYPE)\"65 VBoxNetDHCP_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\" 66 66 endif 67 67 VBoxNetDHCP_DEFS += \ 68 68 $(if $(VBOX_WITH_INTNET_SERVICE_IN_R3),VBOX_WITH_INTNET_SERVICE_IN_R3,) 69 69 70 70 #VBoxNetDHCP_DEFS += IPv6 71 71 #VBoxNetDHCP_DEFS.linux = WITH_VALGRIND 72 72 ifneq ($(KBUILD_TARGET),win) 73 VBoxNetDHCP_DEFS+= VBOX_WITH_XPCOM74 VBoxNetDHCP_INCS+= $(VBOX_XPCOM_INCS)73 VBoxNetDHCP_DEFS += VBOX_WITH_XPCOM 74 VBoxNetDHCP_INCS += $(VBOX_XPCOM_INCS) 75 75 ifneq ($(KBUILD_TARGET),darwin) 76 76 # We want -std=c++11 for 4.7 and newer compilers, and -std=c++0x for older ones. 77 VBoxNetDHCP_CXXFLAGS += -std=$(if $(VBOX_GCC_VERSION_CXX),$(if $(VBOX_GCC_VERSION_CXX) < 40700,c++0x,c++11),c++0x)77 VBoxNetDHCP_CXXFLAGS += -std=$(if $(VBOX_GCC_VERSION_CXX),$(if $(VBOX_GCC_VERSION_CXX) < 40700,c++0x,c++11),c++0x) 78 78 endif 79 79 endif -
trunk/src/VBox/NetworkServices/IntNetSwitch/Makefile.kmk
r98128 r98417 36 36 37 37 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 38 VBoxIntNetSwitch_DEFS= KBUILD_TYPE="$(KBUILD_TYPE)"38 VBoxIntNetSwitch_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)" 39 39 else 40 VBoxIntNetSwitch_DEFS= KBUILD_TYPE=\"$(KBUILD_TYPE)\"40 VBoxIntNetSwitch_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\" 41 41 endif 42 42 VBoxIntNetSwitch_DEFS += VBOX_WITH_INTNET_SERVICE_IN_R3 … … 50 50 51 51 ifeq ($(KBUILD_TARGET),darwin) 52 INSTALLS += VBoxIntNetSwitch.xpc52 INSTALLS += VBoxIntNetSwitch.xpc 53 53 54 VBoxIntNetSwitch.xpc_MODE = 64455 VBoxIntNetSwitch.xpc_INST = $(INST_VIRTUALBOX)Contents/XPCServices/org.virtualbox.intnet.xpc/Contents/56 VBoxIntNetSwitch.xpc_SOURCES = \57 $(VBoxIntNetSwitch.xpc_0_OUTDIR)/Info.plist54 VBoxIntNetSwitch.xpc_MODE = 644 55 VBoxIntNetSwitch.xpc_INST = $(INST_VIRTUALBOX)Contents/XPCServices/org.virtualbox.intnet.xpc/Contents/ 56 VBoxIntNetSwitch.xpc_SOURCES = \ 57 $(VBoxIntNetSwitch.xpc_0_OUTDIR)/Info.plist 58 58 59 59 $$(VBoxIntNetSwitch.xpc_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/ -
trunk/src/VBox/NetworkServices/Makefile.kmk
r98103 r98417 33 33 34 34 # VBoxNetNAT requires COM/XPCOM. 35 if defined(VBOX_WITH_NAT_SERVICE) && defined(VBOX_WITH_MAIN) \35 if defined(VBOX_WITH_NAT_SERVICE) && defined(VBOX_WITH_MAIN) \ 36 36 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" 37 37 include $(PATH_SUB_CURRENT)/NAT/Makefile.kmk -
trunk/src/VBox/NetworkServices/NAT/Makefile.kmk
r98187 r98417 34 34 endif 35 35 36 #37 # Globals38 #39 VBOX_PATH_NAT_SRC := $(PATH_SUB_CURRENT)36 # 37 # Globals 38 # 39 VBOX_PATH_NAT_SRC := $(PATH_SUB_CURRENT) 40 40 41 41 42 #43 # Hardened stub exe for VBoxNetNAT.44 #42 # 43 # Hardened stub exe for VBoxNetNAT. 44 # 45 45 ifdef VBOX_WITH_HARDENING 46 PROGRAMS += VBoxNetNATHardened47 VBoxNetNATHardened_TEMPLATE = VBoxR3HardenedExe48 VBoxNetNATHardened_NAME= VBoxNetNAT46 PROGRAMS += VBoxNetNATHardened 47 VBoxNetNATHardened_TEMPLATE = VBoxR3HardenedExe 48 VBoxNetNATHardened_NAME = VBoxNetNAT 49 49 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 50 VBoxNetNATHardened_DEFS= SERVICE_NAME="VBoxNetNAT"50 VBoxNetNATHardened_DEFS = SERVICE_NAME="VBoxNetNAT" 51 51 else 52 VBoxNetNATHardened_DEFS= SERVICE_NAME=\"VBoxNetNAT\"52 VBoxNetNATHardened_DEFS = SERVICE_NAME=\"VBoxNetNAT\" 53 53 endif 54 VBoxNetNATHardened_SOURCES= VBoxNetNATHardened.cpp55 VBoxNetNATHardened_LDFLAGS.win = /SUBSYSTEM:windows56 $(call VBOX_SET_VER_INFO_EXE,VBoxNetNATHardened,VirtualBox NAT Engine,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.54 VBoxNetNATHardened_SOURCES = VBoxNetNATHardened.cpp 55 VBoxNetNATHardened_LDFLAGS.win = /SUBSYSTEM:windows 56 $(call VBOX_SET_VER_INFO_EXE,VBoxNetNATHardened,VirtualBox NAT Engine,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 57 57 endif 58 58 59 59 60 #61 # VBoxNetNAT.62 #60 # 61 # VBoxNetNAT. 62 # 63 63 ifdef VBOX_WITH_HARDENING 64 DLLS+= VBoxNetNAT64 DLLS += VBoxNetNAT 65 65 else 66 PROGRAMS += VBoxNetNAT66 PROGRAMS += VBoxNetNAT 67 67 endif 68 VBoxNetNAT_TEMPLATE := $(if-expr defined(VBOX_WITH_HARDENING),VBoxMainDll,VBoxMainClientExe)69 VBoxNetNAT_NAME:= VBoxNetNAT70 VBoxNetNAT_DEFS= \68 VBoxNetNAT_TEMPLATE := $(if-expr defined(VBOX_WITH_HARDENING),VBoxMainDll,VBoxMainClientExe) 69 VBoxNetNAT_NAME := VBoxNetNAT 70 VBoxNetNAT_DEFS = \ 71 71 IPv6 \ 72 72 $(if $(VBOX_WITH_INTNET_SERVICE_IN_R3),VBOX_WITH_INTNET_SERVICE_IN_R3,) 73 # VBoxNetNAT_DEFS.linux = WITH_VALGRIND # instrument lwip memp.c74 VBoxNetNAT_DEFS.win= VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP75 # Convince Solaris headers to expose socket stuff we need.76 #77 # Setting _XOPEN_SOURCE to either 500 or 600 would always work, but78 # <sys/feature_tests.h> insists that 600 requires C99 and so it79 # explodes for older g++. It also insists that 500 is NOT to be used80 # with C99.81 #82 # Newer g++ in C++11 mode (formerly known as C++0x) needs 600, so it83 # employs sleight of hand to pretend it's C99 to keep feature test84 # happy.85 #86 # Compile the C code with settings that match g++. This probably87 # should be centralized so that whole codebase uses consistent88 # settings.73 # VBoxNetNAT_DEFS.linux = WITH_VALGRIND # instrument lwip memp.c 74 VBoxNetNAT_DEFS.win = VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP 75 # Convince Solaris headers to expose socket stuff we need. 76 # 77 # Setting _XOPEN_SOURCE to either 500 or 600 would always work, but 78 # <sys/feature_tests.h> insists that 600 requires C99 and so it 79 # explodes for older g++. It also insists that 500 is NOT to be used 80 # with C99. 81 # 82 # Newer g++ in C++11 mode (formerly known as C++0x) needs 600, so it 83 # employs sleight of hand to pretend it's C99 to keep feature test 84 # happy. 85 # 86 # Compile the C code with settings that match g++. This probably 87 # should be centralized so that whole codebase uses consistent 88 # settings. 89 89 ifeq ($(KBUILD_TARGET),solaris) 90 90 ifneq ($(VBOX_GCC_VERSION_CXX),) 91 91 if $(VBOX_GCC_VERSION_CXX) >= 40600 92 # we compile C++ code with -std=c++0x / -std=c++1193 VBoxNetNAT_CFLAGS.solaris += -std=c9994 VBoxNetNAT_DEFS.solaris += _XOPEN_SOURCE=60092 # we compile C++ code with -std=c++0x / -std=c++11 93 VBoxNetNAT_CFLAGS.solaris += -std=c99 94 VBoxNetNAT_DEFS.solaris += _XOPEN_SOURCE=600 95 95 else 96 VBoxNetNAT_DEFS.solaris += _XOPEN_SOURCE=50096 VBoxNetNAT_DEFS.solaris += _XOPEN_SOURCE=500 97 97 endif 98 98 endif 99 VBoxNetNAT_DEFS.solaris += __EXTENSIONS__=199 VBoxNetNAT_DEFS.solaris += __EXTENSIONS__=1 100 100 endif 101 101 102 # (current dir is for for lwipopts.h)103 VBoxNetNAT_INCS += . $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_INCS))102 # (current dir is for for lwipopts.h) 103 VBoxNetNAT_INCS += . $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_INCS)) 104 104 105 VBoxNetNAT_SOURCES = \106 VBoxNetLwipNAT.cpp \107 ../NetLib/IntNetIf.cpp \108 ../NetLib/VBoxNetPortForwardString.cpp \109 $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES)) \110 proxy_pollmgr.c \111 proxy_rtadvd.c \112 proxy.c \113 pxremap.c \114 pxtcp.c \115 pxudp.c \116 pxdns.c \117 fwtcp.c \118 fwudp.c \119 portfwd.c \120 proxy_dhcp6ds.c \121 proxy_tftpd.c105 VBoxNetNAT_SOURCES = \ 106 VBoxNetLwipNAT.cpp \ 107 ../NetLib/IntNetIf.cpp \ 108 ../NetLib/VBoxNetPortForwardString.cpp \ 109 $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES)) \ 110 proxy_pollmgr.c \ 111 proxy_rtadvd.c \ 112 proxy.c \ 113 pxremap.c \ 114 pxtcp.c \ 115 pxudp.c \ 116 pxdns.c \ 117 fwtcp.c \ 118 fwudp.c \ 119 portfwd.c \ 120 proxy_dhcp6ds.c \ 121 proxy_tftpd.c 122 122 123 123 ifeq ($(KBUILD_TARGET),win) 124 VBoxNetNAT_SOURCES += pxping_win.c # unprivileged Icmp API124 VBoxNetNAT_SOURCES += pxping_win.c # unprivileged Icmp API 125 125 else 126 VBoxNetNAT_SOURCES+= pxping.c # raw sockets127 VBoxNetNAT_CFLAGS.linux+= -Wno-address-of-packed-member # Needed for GCC 9.126 VBoxNetNAT_SOURCES += pxping.c # raw sockets 127 VBoxNetNAT_CFLAGS.linux += -Wno-address-of-packed-member # Needed for GCC 9. 128 128 endif 129 129 130 VBoxNetNAT_SOURCES.darwin+= rtmon_bsd.c131 VBoxNetNAT_SOURCES.freebsd += rtmon_bsd.c132 VBoxNetNAT_SOURCES.linux+= rtmon_linux.c133 VBoxNetNAT_SOURCES.solaris += rtmon_bsd.c134 VBoxNetNAT_SOURCES.win+= \135 rtmon_win.c \136 RTWinPoll.cpp \137 RTWinSocketPair.cpp130 VBoxNetNAT_SOURCES.darwin += rtmon_bsd.c 131 VBoxNetNAT_SOURCES.freebsd += rtmon_bsd.c 132 VBoxNetNAT_SOURCES.linux += rtmon_linux.c 133 VBoxNetNAT_SOURCES.solaris += rtmon_bsd.c 134 VBoxNetNAT_SOURCES.win += \ 135 rtmon_win.c \ 136 RTWinPoll.cpp \ 137 RTWinSocketPair.cpp 138 138 139 VBoxNetNAT_LIBS = \139 VBoxNetNAT_LIBS = \ 140 140 $(LIB_RUNTIME) 141 VBoxNetNAT_LIBS.solaris += socket nsl141 VBoxNetNAT_LIBS.solaris += socket nsl 142 142 143 VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows143 VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows 144 144 145 # ifeq ($(VBOX_WITH_HARDENING),)146 # ifn1of ($(KBUILD_TARGET), darwin win)147 # # helper for debugging unprivileged148 # VBoxNetNAT_DEFS += VBOX_RAWSOCK_DEBUG_HELPER149 # VBoxNetNAT_SOURCES += getrawsock.c150 # endif151 # endif145 # ifeq ($(VBOX_WITH_HARDENING),) 146 # ifn1of ($(KBUILD_TARGET), darwin win) 147 # # helper for debugging unprivileged 148 # VBoxNetNAT_DEFS += VBOX_RAWSOCK_DEBUG_HELPER 149 # VBoxNetNAT_SOURCES += getrawsock.c 150 # endif 151 # endif 152 152 153 153 154 154 ifdef VBOX_WITH_HARDENING 155 $(call VBOX_SET_VER_INFO_DLL,VBoxNetNAT,VirtualBox NAT Engine (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.155 $(call VBOX_SET_VER_INFO_DLL,VBoxNetNAT,VirtualBox NAT Engine (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 156 156 else 157 $(call VBOX_SET_VER_INFO_EXE,VBoxNetNAT,VirtualBox NAT Engine,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.157 $(call VBOX_SET_VER_INFO_EXE,VBoxNetNAT,VirtualBox NAT Engine,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 158 158 endif 159 159
Note:
See TracChangeset
for help on using the changeset viewer.