Keep better tabs on secondary tables.
We had some places (NatController) where routes were being set
but not accounted for in the number-of-routes talley so we
could end up thinking the table was empty and not clean up
after ourselves properly.
Also consolidated constants.
bug:5917475
Change-Id: I98a41d433e1d4b4ca6692fb2328e2c9afc828145
diff --git a/oem_iptables_hook.cpp b/oem_iptables_hook.cpp
index 321c5f4..d3026a9 100644
--- a/oem_iptables_hook.cpp
+++ b/oem_iptables_hook.cpp
@@ -24,11 +24,10 @@
#define LOG_TAG "OemIptablesHook"
#include <cutils/log.h>
+#include "NetdConstants.h"
extern "C" int system_nosh(const char *command);
-static char IPTABLES_PATH[] = "/system/bin/iptables";
-static char OEM_SCRIPT_PATH[] = "/system/bin/oem-iptables-init.sh";
static int runIptablesCmd(const char *cmd) {
char *buffer;