Changeset 45138 in vbox for trunk/include/VBox/settings.h
- Timestamp:
- Mar 22, 2013 11:52:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r45117 r45138 185 185 186 186 /** 187 * 188 */ 189 struct NATRule 190 { 191 NATRule() 192 : proto(NATProtocol_TCP), 193 u16HostPort(0), 194 u16GuestPort(0) 195 {} 196 197 bool operator==(const NATRule &r) const 198 { 199 return strName == r.strName 200 && proto == r.proto 201 && u16HostPort == r.u16HostPort 202 && strHostIP == r.strHostIP 203 && u16GuestPort == r.u16GuestPort 204 && strGuestIP == r.strGuestIP; 205 } 206 207 com::Utf8Str strName; 208 NATProtocol_T proto; 209 uint16_t u16HostPort; 210 com::Utf8Str strHostIP; 211 uint16_t u16GuestPort; 212 com::Utf8Str strGuestIP; 213 }; 214 typedef std::list<NATRule> NATRuleList; 215 216 /** 187 217 * Common base class for both MainConfigFile and MachineConfigFile 188 218 * which contains some common logic for both. … … 291 321 }; 292 322 typedef std::list<DHCPServer> DHCPServersList; 323 324 325 /** 326 * Nat Networking settings (NAT service). 327 */ 328 struct NATNetwork 329 { 330 com::Utf8Str strNetworkName; 331 bool fEnabled; 332 com::Utf8Str strNetwork; 333 bool fIPv6; 334 com::Utf8Str strIPv6Prefix; 335 bool fAdvertiseDefaultIPv6Route; 336 bool fNeedDhcpServer; 337 NATRuleList llPortForwardRules4; 338 NATRuleList llPortForwardRules6; 339 NATNetwork():fEnabled(false), 340 fAdvertiseDefaultIPv6Route(false), 341 fNeedDhcpServer(false) 342 {} 343 bool operator==(const NATNetwork &n) const 344 { 345 return strNetworkName == n.strNetworkName 346 && strNetwork == n.strNetwork; 347 } 348 349 }; 350 typedef std::list<NATNetwork> NATNetworksList; 293 351 294 352
Note:
See TracChangeset
for help on using the changeset viewer.