Removes wrong conditions in flags translating functions
that doesn't permit to delete rule with inverse flags set.
For instance, the following command doesn't remove the rule:
arptables-compat -D INPUT -i ! eth1 -j ACCEPT
Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
if (invflags & ARPT_INV_ARPPRO)
result |= IPT_INV_PROTO;
- if (invflags & ARPT_INV_MASK)
- result |= IPT_INV_MASK;
-
return result;
}
if (invflags & IPT_INV_PROTO)
result |= ARPT_INV_ARPPRO;
- if (invflags & IPT_INV_MASK)
- result |= ARPT_INV_MASK;
-
return result;
}