Changeset 33827 in vbox
- Timestamp:
- Nov 8, 2010 10:46:45 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r33661 r33827 358 358 struct NATRule 359 359 { 360 NATRule(): u32Proto(0),360 NATRule(): proto(NATProtocol_TCP), 361 361 u16HostPort(0), 362 362 u16GuestPort(0){} 363 363 com::Utf8Str strName; 364 uint32_t u32Proto;364 NATProtocol_T proto; 365 365 uint16_t u16HostPort; 366 366 com::Utf8Str strHostIP; … … 370 370 { 371 371 return strName == r.strName 372 && u32Proto == r.u32Proto372 && proto == r.proto 373 373 && u16HostPort == r.u16HostPort 374 374 && strHostIP == r.strHostIP -
trunk/src/VBox/Main/NATEngineImpl.cpp
r33825 r33827 246 246 BstrFmt bstr("%s,%d,%s,%d,%s,%d", 247 247 r.strName.c_str(), 248 r. u32Proto,248 r.proto, 249 249 r.strHostIP.c_str(), 250 250 r.u16HostPort, … … 283 283 name = Utf8StrFmt("%s_%d_%d", proto, aHostPort, aGuestPort); 284 284 r.strName = name.c_str(); 285 r. u32Proto = aProto;285 r.proto = aProto; 286 286 r.strHostIP = aBindIp; 287 287 r.u16HostPort = aHostPort; … … 310 310 Utf8Str strHostIP = r.strHostIP; 311 311 Utf8Str strGuestIP = r.strGuestIP; 312 NATProtocol_T proto = r. u32Proto;312 NATProtocol_T proto = r.proto; 313 313 uint16_t u16HostPort = r.u16HostPort; 314 314 uint16_t u16GuestPort = r.u16GuestPort; -
trunk/src/VBox/Main/xml/Settings.cpp
r33731 r33827 2036 2036 uint32_t port = 0; 2037 2037 (*pf)->getAttributeValue("name", rule.strName); 2038 (*pf)->getAttributeValue("proto", rule. u32Proto);2038 (*pf)->getAttributeValue("proto", rule.proto); 2039 2039 (*pf)->getAttributeValue("hostip", rule.strHostIP); 2040 2040 (*pf)->getAttributeValue("hostport", port); … … 3886 3886 if ((*rule).strName.length()) 3887 3887 pelmPF->setAttribute("name", (*rule).strName); 3888 pelmPF->setAttribute("proto", (*rule). u32Proto);3888 pelmPF->setAttribute("proto", (*rule).proto); 3889 3889 if ((*rule).strHostIP.length()) 3890 3890 pelmPF->setAttribute("hostip", (*rule).strHostIP);
Note:
See TracChangeset
for help on using the changeset viewer.