Home
last modified time | relevance | path

Searched refs:childChain (Results 1 – 2 of 2) sorted by relevance

/system/netd/server/
DFirewallController.cpp262 int FirewallController::attachChain(const char* childChain, const char* parentChain) { in attachChain() argument
263 return execIptables(V4V6, "-t", TABLE, "-A", parentChain, "-j", childChain, NULL); in attachChain()
266 int FirewallController::detachChain(const char* childChain, const char* parentChain) { in detachChain() argument
267 return execIptables(V4V6, "-t", TABLE, "-D", parentChain, "-j", childChain, NULL); in detachChain()
270 int FirewallController::createChain(const char* childChain, in createChain() argument
273 execIptablesSilently(V4V6, "-t", TABLE, "-D", parentChain, "-j", childChain, NULL); in createChain()
274 execIptablesSilently(V4V6, "-t", TABLE, "-F", childChain, NULL); in createChain()
275 execIptablesSilently(V4V6, "-t", TABLE, "-X", childChain, NULL); in createChain()
277 res |= execIptables(V4V6, "-t", TABLE, "-N", childChain, NULL); in createChain()
281 res |= execIptables(V6, "-A", childChain, "-p", "icmpv6", "--icmpv6-type", in createChain()
[all …]
DCommandListener.cpp154 const char** childChain = childChains; in createChildChains() local
164 execIptablesSilently(target, "-t", table, "-D", parentChain, "-j", *childChain, NULL); in createChildChains()
165 execIptablesSilently(target, "-t", table, "-F", *childChain, NULL); in createChildChains()
166 execIptablesSilently(target, "-t", table, "-X", *childChain, NULL); in createChildChains()
167 execIptables(target, "-t", table, "-N", *childChain, NULL); in createChildChains()
168 execIptables(target, "-t", table, "-A", parentChain, "-j", *childChain, NULL); in createChildChains()
169 } while (*(++childChain) != NULL); in createChildChains()
1392 ChildChain childChain = parseChildChain(argv[2]); in runCommand() local
1393 if (childChain == INVALID_CHAIN) { in runCommand()
1401 int res = sFirewallCtrl->setUidRule(childChain, uid, rule); in runCommand()
[all …]