list_for_each_entry_safe(s, tmp, &state->running_ipsets, running_list)
{
- if (hasbit(s->running_flags, family))
- delbit(s->flags, family);
+ delbit(s->running_flags, family);
- if (fw3_no_family(s))
+ if (fw3_no_family(s->running_flags))
{
info(" * Deleting ipset %s", s->name);
struct fw3_zone *z;
struct fw3_ipset *i;
- if (fw3_no_family(d))
+ if (fw3_no_family(d->flags))
{
if (unlink(FW3_STATEFILE))
warn("Unable to remove state %s: %s",
#define fw3_is_family(p, f) \
(!p || (p)->family == FW3_FAMILY_ANY || (p)->family == f)
-#define fw3_no_family(p) \
- (!p || !((p)->flags & ((1 << FW3_FAMILY_V4) | (1 << FW3_FAMILY_V6))))
+#define fw3_no_family(flags) \
+ (!(flags & ((1 << FW3_FAMILY_V4) | (1 << FW3_FAMILY_V6))))
const char * fw3_find_command(const char *cmd);
if (pass2)
{
- delbit(z->flags, family);
+ delbit(z->running_flags, family);
- if (fw3_no_family(z))
+ if (fw3_no_family(z->running_flags))
fw3_set_running(z, NULL);
}
}