Lines Matching refs:res

65     int res = 0;  in setupIptablesHooks()  local
68 res |= createChain(LOCAL_DOZABLE, LOCAL_INPUT, firewallType); in setupIptablesHooks()
71 res |= createChain(LOCAL_STANDBY, LOCAL_INPUT, firewallType); in setupIptablesHooks()
74 res |= createChain(LOCAL_POWERSAVE, LOCAL_INPUT, firewallType); in setupIptablesHooks()
76 return res; in setupIptablesHooks()
80 int res = 0; in enableFirewall() local
87 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); in enableFirewall()
88 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); in enableFirewall()
89 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); in enableFirewall()
95 return res; in enableFirewall()
99 int res = 0; in disableFirewall() local
104 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL); in disableFirewall()
105 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL); in disableFirewall()
106 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL); in disableFirewall()
108 return res; in disableFirewall()
112 int res = 0; in enableChildChains() local
125 return res; in enableChildChains()
129 res |= attachChain(name, LOCAL_INPUT); in enableChildChains()
130 res |= attachChain(name, LOCAL_OUTPUT); in enableChildChains()
132 res |= detachChain(name, LOCAL_INPUT); in enableChildChains()
133 res |= detachChain(name, LOCAL_OUTPUT); in enableChildChains()
135 return res; in enableChildChains()
161 int res = 0; in setInterfaceRule() local
162 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule()
163 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); in setInterfaceRule()
164 return res; in setInterfaceRule()
185 int res = 0; in setEgressSourceRule() local
186 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
187 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
188 return res; in setEgressSourceRule()
216 int res = 0; in setEgressDestRule() local
217 res |= execIptables(target, op, LOCAL_INPUT, "-s", addr, "-p", protocolStr, in setEgressDestRule()
219 res |= execIptables(target, op, LOCAL_OUTPUT, "-d", addr, "-p", protocolStr, in setEgressDestRule()
221 return res; in setEgressDestRule()
256 int res = 0; in setUidRule() local
259 res |= execIptables(V4V6, op, LOCAL_DOZABLE, "-m", "owner", "--uid-owner", in setUidRule()
263 res |= execIptables(V4V6, op, LOCAL_STANDBY, "-m", "owner", "--uid-owner", in setUidRule()
267 res |= execIptables(V4V6, op, LOCAL_POWERSAVE, "-m", "owner", "--uid-owner", in setUidRule()
271 res |= execIptables(V4V6, op, LOCAL_INPUT, "-m", "owner", "--uid-owner", uidStr, in setUidRule()
273 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-m", "owner", "--uid-owner", uidStr, in setUidRule()
280 return res; in setUidRule()