Searched refs:rule (Results 1 - 3 of 3) sorted by relevance

/system/netd/server/
H A DFirewallController.cpp47 // 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 DCommandListener.cpp155 // -D to delete any pre-existing jump rule (removes references
1280 FirewallRule rule = parseRule(argv[3]); local
1282 int res = sFirewallCtrl->setInterfaceRule(iface, rule);
1295 FirewallRule rule = parseRule(argv[3]); local
1297 int res = sFirewallCtrl->setEgressSourceRule(addr, rule);
1311 FirewallRule rule = parseRule(argv[4]); local
1314 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_TCP, port, rule);
1315 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_UDP, port, rule);
1328 FirewallRule rule = parseRule(argv[3]); local
1330 int res = sFirewallCtrl->setUidRule(uid, rule);
[all...]
H A DRouteController.cpp244 // 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 82 milliseconds