Fix inadvertent "TQ" changes.

pull/1/head
Darrell Anderson 13 years ago
parent b78c4cf3a7
commit ee24e797ca

@ -553,7 +553,7 @@ void KMFIPTablesDocumentConverter::setupNatRules( KMFGenericDoc* doc, KMFIPTDoc*
void KMFIPTablesDocumentConverter::setupNatTarget( KMFGenericDoc* doc, IPTRule* rule ) { void KMFIPTablesDocumentConverter::setupNatTarget( KMFGenericDoc* doc, IPTRule* rule ) {
if ( doc->useMasquerade() ) { if ( doc->useMasquerade() ) {
rule->setTarget( "MASTQUERADE" ); rule->setTarget( "MASQUERADE" );
} else { } else {
rule->setTarget( "SNAT" ); rule->setTarget( "SNAT" );
TQString opt = "target_snat_opt"; TQString opt = "target_snat_opt";

@ -75,7 +75,7 @@ int IPAddress::operator==( const IPAddress& addr ) {
} }
} }
if ( ident ) if ( ident )
return ETQUAL; return EQUAL;
if ( m_digits[ first_diff ] > addr.getDigit( first_diff ) ) if ( m_digits[ first_diff ] > addr.getDigit( first_diff ) )
return SMALLER; return SMALLER;

@ -68,7 +68,7 @@ public:
const TQString& toString() const; const TQString& toString() const;
/** Return values for the comparision operator== */ /** Return values for the comparision operator== */
enum { ETQUAL, BIGGER, SMALLER }; enum { EQUAL, BIGGER, SMALLER };
private: private:
int m_digits[ NUMDIGITS ]; int m_digits[ NUMDIGITS ];

@ -248,7 +248,7 @@ TQPtrList<IPTRule>& IPTChain::chainFwds() {
// FIXME: lots of targets missing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // FIXME: lots of targets missing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if ( !target.isEmpty() && target != "ACCEPT" && target != "DROP" && target != "LOG" if ( !target.isEmpty() && target != "ACCEPT" && target != "DROP" && target != "LOG"
&& target != "REJECT" && target != "RETURN" && target != "DNAT" && target != "SNAT" && target != "REJECT" && target != "RETURN" && target != "DNAT" && target != "SNAT"
&& target != "QUEUE" && target != "MIRROR" && target != "REDIRECT" && target != "MASTQUERADE" ) { && target != "QUEUE" && target != "MIRROR" && target != "REDIRECT" && target != "MASQUERADE" ) {
//kdDebug() << "Found Forward to chain: " << target << endl; //kdDebug() << "Found Forward to chain: " << target << endl;
fwds->append( rule ); fwds->append( rule );
} }

@ -145,7 +145,7 @@ bool IPTRule::isForward() const {
m_target == "RETURN" || m_target == "REJECT" || m_target == "RETURN" || m_target == "REJECT" ||
m_target == "MIRROR" || m_target == "SNAT" || m_target == "MIRROR" || m_target == "SNAT" ||
m_target == "DNAT" || m_target == "REDIRECT" || m_target == "DNAT" || m_target == "REDIRECT" ||
m_target == "MASTQUERADE" || m_target == "MARK" || m_target == "MASQUERADE" || m_target == "MARK" ||
m_target == "TOS" ) { m_target == "TOS" ) {
return true; return true;
} else { } else {
@ -178,7 +178,7 @@ TQStringList IPTRule::availableTargets() const {
} }
if ( table == Constants::NatTable_Name && name == Constants::PostRoutingChain_Name ) if ( table == Constants::NatTable_Name && name == Constants::PostRoutingChain_Name )
targets << "MASTQUERADE"; targets << "MASQUERADE";
if ( table == Constants::MangleTable_Name ) { if ( table == Constants::MangleTable_Name ) {
targets << "MARK" << "TOS"; targets << "MARK" << "TOS";

@ -600,7 +600,7 @@ void KMFNetZone::refreshNetworkTree() {
for( int j = i - 1; allZones->count() > 1 && j >= 0; j-- ) { for( int j = i - 1; allZones->count() > 1 && j >= 0; j-- ) {
KMFNetZone *thisTry = allZones->at(j); KMFNetZone *thisTry = allZones->at(j);
if ( thisTry != currZone && ! ( if ( thisTry != currZone && ! (
( thisTry->address() == currZone->address() ) == IPAddress::ETQUAL && ( thisTry->address() == currZone->address() ) == IPAddress::EQUAL &&
thisTry->maskLength() == currZone->maskLength() thisTry->maskLength() == currZone->maskLength()
) && ) &&

@ -152,7 +152,7 @@ void KMFGenericInterfaceNat::slotMasqueradeEnabled( bool onoff ) {
} }
KMFUndoEngine::instance()->startTransaction( KMFUndoEngine::instance()->startTransaction(
m_doc->currentDocAsGenericDoc(), m_doc->currentDocAsGenericDoc(),
i18n( "%1 MASTQUERADE target for NAT." ).arg( onoff ? i18n( "Enable" ) : i18n( "Disable" ) ) i18n( "%1 MASQUERADE target for NAT." ).arg( onoff ? i18n( "Enable" ) : i18n( "Disable" ) )
); );
m_doc->currentDocAsGenericDoc()->setUseMasquerade( onoff ); m_doc->currentDocAsGenericDoc()->setUseMasquerade( onoff );
KMFUndoEngine::instance()->endTransaction(); KMFUndoEngine::instance()->endTransaction();

Loading…
Cancel
Save