Lines Matching refs:add
152 // add this if we are the first added nat
201 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) {
202 const char *op = add ? "-A" : "-D";
208 if (iptablesRestoreFunction(V6, rpfilterCmd) == -1 && add) {
226 /* We only ever add tethering quota rules so that they stick. */
228 if (add && !checkTetherCountingRuleExist(pair1)) {
233 if (add && !checkTetherCountingRuleExist(pair2)) {
241 if (add) {
249 // We only add IPv6 rules here, never remove them.
251 (add && iptablesRestoreFunction(V6, Join(v6, '\n')) == -1)) {
253 if (add) {
259 if (add && !checkTetherCountingRuleExist(pair1)) {
262 if (add && !checkTetherCountingRuleExist(pair2)) {