projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make enum values unique to allow using them in bitfields directly, increase flag...
[project/firewall3.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index
f43a859
..
9b62789
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-403,7
+403,7
@@
fw3_write_statefile(void *state)
struct fw3_zone *z;
struct fw3_ipset *i;
struct fw3_zone *z;
struct fw3_ipset *i;
- int mask = (1 << FW3_
DEFAULT_IPV4_LOADED) | (1 << FW3_DEFAULT_IPV6_LOADED
);
+ int mask = (1 << FW3_
FAMILY_V4) | (1 << FW3_FAMILY_V6
);
if (!(d->flags & mask))
{
if (!(d->flags & mask))
{
@@
-435,7
+435,7
@@
fw3_write_statefile(void *state)
if (i->external && *i->external)
continue;
if (i->external && *i->external)
continue;
- fprintf(sf, "%u %s
\n", FW3_TYPE_IPSET, i->name
);
+ fprintf(sf, "%u %s
%u\n", FW3_TYPE_IPSET, i->name, i->flags
);
}
fclose(sf);
}
fclose(sf);