Rename natctrl_* iptables rules to tetherctrl_*
Bug: 32163131
Bug: 64995262
Test: bullhead builds and boots
Test: netd_{unit,integration}_test pass
Change-Id: Ifd20920713b2b5b9c22f4c829ef037bbac024505
diff --git a/server/TetherController.cpp b/server/TetherController.cpp
index 543eaef..ad32682 100644
--- a/server/TetherController.cpp
+++ b/server/TetherController.cpp
@@ -561,7 +561,7 @@
// Always make sure the drop rule is at the end.
// TODO: instead of doing this, consider just rebuilding LOCAL_FORWARD completely from scratch
- // every time, starting with ":natctrl_FORWARD -\n". This method would likely be a bit simpler.
+ // every time, starting with ":tetherctrl_FORWARD -\n". This would likely be a bit simpler.
if (add) {
v4.push_back(StringPrintf("-D %s -j DROP", LOCAL_FORWARD));
v4.push_back(StringPrintf("-A %s -j DROP", LOCAL_FORWARD));
@@ -616,14 +616,14 @@
/*
* Parse the ptks and bytes out of:
- * Chain natctrl_tether_counters (4 references)
+ * Chain tetherctrl_counters (4 references)
* pkts bytes target prot opt in out source destination
* 26 2373 RETURN all -- wlan0 rmnet0 0.0.0.0/0 0.0.0.0/0
* 27 2002 RETURN all -- rmnet0 wlan0 0.0.0.0/0 0.0.0.0/0
* 1040 107471 RETURN all -- bt-pan rmnet0 0.0.0.0/0 0.0.0.0/0
* 1450 1708806 RETURN all -- rmnet0 bt-pan 0.0.0.0/0 0.0.0.0/0
* or:
- * Chain natctrl_tether_counters (0 references)
+ * Chain tetherctrl_counters (0 references)
* pkts bytes target prot opt in out source destination
* 0 0 RETURN all wlan0 rmnet_data0 ::/0 ::/0
* 0 0 RETURN all rmnet_data0 wlan0 ::/0 ::/0