Changeset 48094 in vbox
- Timestamp:
- Aug 27, 2013 4:42:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r48093 r48094 165 165 * 166 166 */ 167 struct NATRule 168 { 169 NATRule() 170 : proto(NATProtocol_TCP), 171 u16HostPort(0), 172 u16GuestPort(0) 173 {} 174 175 bool operator==(const NATRule &r) const 176 { 177 return strName == r.strName 178 && proto == r.proto 179 && u16HostPort == r.u16HostPort 180 && strHostIP == r.strHostIP 181 && u16GuestPort == r.u16GuestPort 182 && strGuestIP == r.strGuestIP; 183 } 184 185 com::Utf8Str strName; 186 NATProtocol_T proto; 187 uint16_t u16HostPort; 188 com::Utf8Str strHostIP; 189 uint16_t u16GuestPort; 190 com::Utf8Str strGuestIP; 191 }; 192 typedef std::list<NATRule> NATRuleList; 167 struct NATRule 168 { 169 NATRule() 170 : proto(NATProtocol_TCP), 171 u16HostPort(0), 172 u16GuestPort(0) 173 {} 174 175 bool operator==(const NATRule &r) const 176 { 177 return strName == r.strName 178 && proto == r.proto 179 && u16HostPort == r.u16HostPort 180 && strHostIP == r.strHostIP 181 && u16GuestPort == r.u16GuestPort 182 && strGuestIP == r.strGuestIP; 183 } 184 185 com::Utf8Str strName; 186 NATProtocol_T proto; 187 uint16_t u16HostPort; 188 com::Utf8Str strHostIP; 189 uint16_t u16GuestPort; 190 com::Utf8Str strGuestIP; 191 }; 192 typedef std::list<NATRule> NATRuleList; 193 193 194 194 195 struct NATHostLoopbackOffset
Note:
See TracChangeset
for help on using the changeset viewer.