Changeset 46969 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jul 4, 2013 6:35:01 AM (12 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DHCPServerImpl.h
r46959 r46969 30 30 { 31 31 struct DHCPServer; 32 struct VmNameSlotKey;33 32 } 34 #ifdef RT_OS_WINDOWS35 # define DHCP_EXECUTABLE_NAME "VBoxNetDHCP.exe"36 #else37 # define DHCP_EXECUTABLE_NAME "VBoxNetDHCP"38 #endif39 40 class DHCPServerRunner: public NetworkServiceRunner41 {42 public:43 DHCPServerRunner():NetworkServiceRunner(DHCP_EXECUTABLE_NAME){}44 virtual ~DHCPServerRunner(){};45 };46 47 /**48 * for server configuration needs, it's perhaps better to use (VM,slot) pair49 * (vm-name, slot) <----> (MAC)50 *51 * but for client configuration, when server will have MACs at hand, it'd be52 * easier to requiest options by MAC.53 * (MAC) <----> (option-list)54 *55 * Doubts: What should be done if MAC changed for (vm-name, slot), when syncing should?56 * XML: serialization of dependecy (DHCP options) - (VM,slot) shouldn't be done via MAC in57 * the middle.58 */59 60 typedef std::map<DhcpOpt_T, com::Utf8Str> DhcpOptionMap;61 typedef DhcpOptionMap::value_type DhcpOptValuePair;62 typedef DhcpOptionMap::const_iterator DhcpOptConstIterator;63 typedef DhcpOptionMap::iterator DhcpOptIterator;64 65 typedef std::map<settings::VmNameSlotKey, DhcpOptionMap> VmSlot2OptionsMap;66 typedef VmSlot2OptionsMap::value_type VmSlot2OptionsPair;67 typedef VmSlot2OptionsMap::iterator VmSlot2OptionsIterator;68 69 33 70 34 class ATL_NO_VTABLE DHCPServer : … … 106 70 STDMETHOD(COMGETTER(UpperIP))(BSTR *aIPAddress); 107 71 108 STDMETHOD(AddGlobalOption)(DhcpOpt_T aOption, IN_BSTR aValue);109 STDMETHOD(COMGETTER(GlobalOptions))(ComSafeArrayOut(BSTR, aValue));110 STDMETHOD(COMGETTER(VmConfigs))(ComSafeArrayOut(BSTR, aValue));111 STDMETHOD(AddVmSlotOption)(IN_BSTR aVmName, LONG aSlot, DhcpOpt_T aOption, IN_BSTR aValue);112 STDMETHOD(RemoveVmSlotOptions)(IN_BSTR aVmName, LONG aSlot);113 STDMETHOD(GetVmSlotOptions)(IN_BSTR aVmName, LONG aSlot, ComSafeArrayOut(BSTR, aValues));114 STDMETHOD(GetMacOptions)(IN_BSTR aMAC, ComSafeArrayOut(BSTR, aValues));115 STDMETHOD(COMGETTER(EventSource))(IEventSource **aEventSource);116 117 118 72 STDMETHOD(SetConfiguration)(IN_BSTR aIPAddress, IN_BSTR aNetworkMask, IN_BSTR aFromIPAddress, IN_BSTR aToIPAddress); 119 73 … … 132 86 133 87 Bstr IPAddress; 88 Bstr networkMask; 134 89 Bstr lowerIP; 135 90 Bstr upperIP; 91 BOOL enabled; 136 92 137 BOOL enabled;138 93 DHCPServerRunner dhcp; 139 140 DhcpOptionMap GlobalDhcpOptions;141 VmSlot2OptionsMap VmSlot2Options;142 94 } m; 143 144 DhcpOptionMap& findOptMapByVmNameSlot(const com::Utf8Str& aVmName, 145 LONG Slot); 95 146 96 }; 147 97 -
trunk/src/VBox/Main/include/HostImpl.h
r46959 r46969 62 62 STDMETHOD(COMGETTER(USBDeviceFilters))(ComSafeArrayOut(IHostUSBDeviceFilter *, aUSBDeviceFilters)); 63 63 STDMETHOD(COMGETTER(NetworkInterfaces))(ComSafeArrayOut(IHostNetworkInterface *, aNetworkInterfaces)); 64 STDMETHOD(COMGETTER(NameServers))(ComSafeArrayOut(BSTR, aNameServers));65 STDMETHOD(COMGETTER(DomainName))(BSTR *aDomainName);66 STDMETHOD(COMGETTER(SearchStrings))(ComSafeArrayOut(BSTR, aSearchStrings));67 68 64 STDMETHOD(COMGETTER(ProcessorCount))(ULONG *count); 69 65 STDMETHOD(COMGETTER(ProcessorOnlineCount))(ULONG *count); … … 151 147 HRESULT updateNetIfList(); 152 148 153 #ifndef RT_OS_WINDOWS154 HRESULT parseResolvConf();155 #else156 HRESULT fetchNameResolvingInformation();157 #endif158 159 149 #ifdef VBOX_WITH_RESOURCE_USAGE_API 160 150 void registerMetrics(PerformanceCollector *aCollector); -
trunk/src/VBox/Main/include/NATNetworkImpl.h
r46959 r46969 37 37 } 38 38 39 #ifdef RT_OS_WINDOWS40 # define NATSR_EXECUTABLE_NAME "VBoxNetLwipNAT.exe"41 #else42 # define NATSR_EXECUTABLE_NAME "VBoxNetLwipNAT"43 #endif44 45 class NATNetworkServiceRunner: public NetworkServiceRunner46 {47 public:48 NATNetworkServiceRunner(): NetworkServiceRunner(NATSR_EXECUTABLE_NAME){}49 virtual ~NATNetworkServiceRunner(){}50 };51 39 52 40 class ATL_NO_VTABLE NATNetwork :
Note:
See TracChangeset
for help on using the changeset viewer.