OSDN Git Service

DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables.
authorJP Abgrall <jpa@google.com>
Thu, 23 Jun 2011 01:50:04 +0000 (18:50 -0700)
committerJP Abgrall <jpa@google.com>
Tue, 26 Jul 2011 17:16:59 +0000 (10:16 -0700)
DO NOT MERGE: cherry-pick from master, as oem's will be updating this
file in HC.

It doesn't use them, so it should not have to flush them.
This is a minimalistic attempt to cooperate with the BandwidthController.

Change-Id: Ia175a86403adf034ac6f44d7ebc4ebe941881368

NatController.cpp

index ddb0499..8c719eb 100644 (file)
@@ -70,12 +70,8 @@ int NatController::setDefaults() {
 
     if (runIptablesCmd("-P INPUT ACCEPT"))
         return -1;
-    if (runIptablesCmd("-F INPUT"))
-        return -1;
     if (runIptablesCmd("-P OUTPUT ACCEPT"))
         return -1;
-    if (runIptablesCmd("-F OUTPUT"))
-        return -1;
     if (runIptablesCmd("-P FORWARD DROP"))
         return -1;
     if (runIptablesCmd("-F FORWARD"))