Searched refs:rule (Results 1 - 3 of 3) sorted by relevance
/system/netd/server/ |
H A D | FirewallController.cpp | 47 // create default rule to drop all traffic 71 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument 78 if (rule == ALLOW) { 90 int FirewallController::setEgressSourceRule(const char* addr, FirewallRule rule) { argument 97 if (rule == ALLOW) { 110 FirewallRule rule) { 123 if (rule == ALLOW) { 137 int FirewallController::setUidRule(int uid, FirewallRule rule) { argument 142 if (rule == ALLOW) { 109 setEgressDestRule(const char* addr, int protocol, int port, FirewallRule rule) argument
|
H A D | CommandListener.cpp | 155 // -D to delete any pre-existing jump rule (removes references 1257 FirewallRule rule = parseRule(argv[3]); local 1259 int res = sFirewallCtrl->setInterfaceRule(iface, rule); 1272 FirewallRule rule = parseRule(argv[3]); local 1274 int res = sFirewallCtrl->setEgressSourceRule(addr, rule); 1288 FirewallRule rule = parseRule(argv[4]); local 1291 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_TCP, port, rule); 1292 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_UDP, port, rule); 1305 FirewallRule rule = parseRule(argv[3]); local 1307 int res = sFirewallCtrl->setUidRule(uid, rule); [all...] |
H A D | RouteController.cpp | 244 // Adds or removes a routing rule for IPv4 and IPv6. 246 // + If |table| is non-zero, the rule points at the specified routing table. Otherwise, the rule 248 // + If |mask| is non-zero, the rule matches the specified fwmark and mask. Otherwise, |fwmark| is 250 // + If |iif| is non-NULL, the rule matches the specified incoming interface. 251 // + If |oif| is non-NULL, the rule matches the specified outgoing interface. 252 // + If |uidStart| and |uidEnd| are not INVALID_UID, the rule matches packets from UIDs in that 253 // range (inclusive). Otherwise, the rule matches packets from all UIDs. 284 // Assemble a rule request and put it in an array of iovec structures. 285 fib_rule_hdr rule local [all...] |
Completed in 264 milliseconds