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

/system/netd/
H A DFirewallController.cpp47 // create default rule to drop all traffic
71 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument
73 if (rule == ALLOW) {
85 int FirewallController::setEgressSourceRule(const char* addr, FirewallRule rule) { argument
92 if (rule == ALLOW) {
105 FirewallRule rule) {
118 if (rule == ALLOW) {
132 int FirewallController::setUidRule(int uid, FirewallRule rule) { argument
137 if (rule == ALLOW) {
104 setEgressDestRule(const char* addr, int protocol, int port, FirewallRule rule) argument
H A DCommandListener.cpp111 // -D to delete any pre-existing jump rule (removes references
1385 FirewallRule rule = parseRule(argv[3]); local
1387 int res = sFirewallCtrl->setInterfaceRule(iface, rule);
1400 FirewallRule rule = parseRule(argv[3]); local
1402 int res = sFirewallCtrl->setEgressSourceRule(addr, rule);
1416 FirewallRule rule = parseRule(argv[4]); local
1419 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_TCP, port, rule);
1420 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_UDP, port, rule);
1433 FirewallRule rule = parseRule(argv[3]); local
1435 int res = sFirewallCtrl->setUidRule(uid, rule);
[all...]
/system/core/libcutils/
H A Dtztime.c156 struct rule { struct
157 int r_type; /* type of rule--see below */
158 int r_day; /* day number of rule */
159 int r_week; /* week number of rule */
160 int r_mon; /* month number of rule */
161 long r_time; /* transition time of rule */
181 static const char * getrule P((const char * strp, struct rule * rulep));
212 const struct rule * rulep, long offset));
772 ** Given a pointer into a time zone string, extract a rule in the form
774 ** If a valid rule i
[all...]

Completed in 48 milliseconds