summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-08-24 19:21:50 +0900
committerLorenzo Colitti <lorenzo@google.com>2017-08-31 16:52:45 +0900
commit4604b4a4319fe749a812b7c32cfdd459b0f53f47 (patch)
tree32039a750b079298a894220c1ff4d87e124ccb16 /server/TetherController.cpp
parent0935339bb85483697070fc618ad1e820eb8e45aa (diff)
Rename natctrl_* iptables rules to tetherctrl_*
Bug: 32163131 Bug: 64995262 Test: bullhead builds and boots Test: netd_{unit,integration}_test pass Change-Id: Ifd20920713b2b5b9c22f4c829ef037bbac024505
Diffstat (limited to 'server/TetherController.cpp')
-rw-r--r--server/TetherController.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp
index 543eaef0..ad326823 100644
--- a/server/TetherController.cpp
+++ b/server/TetherController.cpp
@@ -561,7 +561,7 @@ int TetherController::setForwardRules(bool add, const char *intIface, const char
// 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 @@ void TetherController::addStats(TetherStatsList& statsList, const TetherStats& s
/*
* 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