352
NATRule(): proto(NATProtocol_TCP),
362
: proto(NATProtocol_TCP),
367
bool operator==(const NATRule &r) const
369
return strName == r.strName
371
&& u16HostPort == r.u16HostPort
372
&& strHostIP == r.strHostIP
373
&& u16GuestPort == r.u16GuestPort
374
&& strGuestIP == r.strGuestIP;
355
377
com::Utf8Str strName;
356
378
NATProtocol_T proto;
357
379
uint16_t u16HostPort;
358
380
com::Utf8Str strHostIP;
359
381
uint16_t u16GuestPort;
360
382
com::Utf8Str strGuestIP;
361
bool operator==(const NATRule &r) const
363
return strName == r.strName
365
&& u16HostPort == r.u16HostPort
366
&& strHostIP == r.strHostIP
367
&& u16GuestPort == r.u16GuestPort
368
&& strGuestIP == r.strGuestIP;
371
384
typedef std::list<NATRule> NATRuleList;
380
fDnsPassDomain(true), /* historically this value is true */
382
fDnsUseHostResolver(false),
384
fAliasProxyOnly(false),
385
fAliasUseSamePorts(false)
394
fDnsPassDomain(true), /* historically this value is true */
396
fDnsUseHostResolver(false),
398
fAliasProxyOnly(false),
399
fAliasUseSamePorts(false)
388
com::Utf8Str strNetwork;
389
com::Utf8Str strBindIP;
395
com::Utf8Str strTftpPrefix;
396
com::Utf8Str strTftpBootFile;
397
com::Utf8Str strTftpNextServer;
400
bool fDnsUseHostResolver;
402
bool fAliasProxyOnly;
403
bool fAliasUseSamePorts;
405
402
bool operator==(const NAT &n) const
407
404
return strNetwork == n.strNetwork
422
419
&& fAliasUseSamePorts == n.fAliasUseSamePorts
423
420
&& llRules == n.llRules;
423
com::Utf8Str strNetwork;
424
com::Utf8Str strBindIP;
430
com::Utf8Str strTftpPrefix;
431
com::Utf8Str strTftpBootFile;
432
com::Utf8Str strTftpNextServer;
435
bool fDnsUseHostResolver;
437
bool fAliasProxyOnly;
438
bool fAliasUseSamePorts;
427
442
* NOTE: If you add any fields in here, you must update a) the constructor and b)