Lines Matching refs:res
42 int res = 0; in enableFirewall() local
48 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); in enableFirewall()
49 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); in enableFirewall()
50 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); in enableFirewall()
52 return res; in enableFirewall()
56 int res = 0; in disableFirewall() local
59 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL); in disableFirewall()
60 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL); in disableFirewall()
61 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL); in disableFirewall()
63 return res; in disableFirewall()
79 int res = 0; in setInterfaceRule() local
80 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule()
81 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); in setInterfaceRule()
82 return res; in setInterfaceRule()
98 int res = 0; in setEgressSourceRule() local
99 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
100 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
101 return res; in setEgressSourceRule()
124 int res = 0; in setEgressDestRule() local
125 res |= execIptables(target, op, LOCAL_INPUT, "-s", addr, "-p", protocolStr, in setEgressDestRule()
127 res |= execIptables(target, op, LOCAL_OUTPUT, "-d", addr, "-p", protocolStr, in setEgressDestRule()
129 return res; in setEgressDestRule()
143 int res = 0; in setUidRule() local
144 res |= execIptables(V4V6, op, LOCAL_INPUT, "-m", "owner", "--uid-owner", uidStr, in setUidRule()
146 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-m", "owner", "--uid-owner", uidStr, in setUidRule()
148 return res; in setUidRule()