bandwidthcontroller: brute-force cleanup to catch costly_<iface> chains.
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
diff --git a/BandwidthController.cpp b/BandwidthController.cpp
index bb2b4dc..eb33356 100644
--- a/BandwidthController.cpp
+++ b/BandwidthController.cpp
@@ -79,8 +79,10 @@
/* 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[] = {