Searched refs:runCmd (Results 1 – 2 of 2) sorted by relevance
/system/netd/ |
D | NatController.cpp | 48 int NatController::runCmd(const char *path, const char *cmd) { in runCmd() function in NatController 72 if (runCmd(IPTABLES_PATH, "-F natctrl_FORWARD")) in setDefaults() 74 if (runCmd(IPTABLES_PATH, "-t nat -F natctrl_nat_POSTROUTING")) in setDefaults() 77 runCmd(IP_PATH, "rule flush"); in setDefaults() 78 runCmd(IP_PATH, "-6 rule flush"); in setDefaults() 79 runCmd(IP_PATH, "rule add from all lookup default prio 32767"); in setDefaults() 80 runCmd(IP_PATH, "rule add from all lookup main prio 32766"); in setDefaults() 81 runCmd(IP_PATH, "-6 rule add from all lookup default prio 32767"); in setDefaults() 82 runCmd(IP_PATH, "-6 rule add from all lookup main prio 32766"); in setDefaults() 83 runCmd(IP_PATH, "route flush cache"); in setDefaults() [all …]
|
D | NatController.h | 42 int runCmd(const char *path, const char *cmd);
|