OSDN Git Service

bandwidthcontroller: brute-force cleanup to catch costly_<iface> chains.
authorJP Abgrall <jpa@google.com>
Thu, 30 Jun 2011 02:21:58 +0000 (19:21 -0700)
committerJP Abgrall <jpa@google.com>
Thu, 30 Jun 2011 02:23:26 +0000 (19:23 -0700)
To help with development, where re-enable is used as a cleanup mechanism
we no remove ALL user chains.
Normally we only expect
  costly, penalty_box, and costly_<iface>.
If in the future we have more chains outside of those, this will need
revisiting.

Change-Id: I45e504bc1fe4ad973c00308967a474c73e959666

BandwidthController.cpp

index bb2b4dc..eb33356 100644 (file)
@@ -79,8 +79,10 @@ const char *BandwidthController::cleanupCommands[] = {
     /* Cleanup rules. */
     "-F",
     "-t raw -F",
-    "-X costly",
-    "-X penalty_box",
+    /* TODO: If at some point we need more user chains than here, then we will need
+     * a different cleanup approach.
+     */
+    "-X",  /* Should normally only be costly, penalty_box, and costly_<iface>  */
 };
 
 const char *BandwidthController::setupCommands[] = {