projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unify print_chains() implementations in utils.c fw3_pr_rulespec()
[project/firewall3.git]
/
ipsets.c
diff --git
a/ipsets.c
b/ipsets.c
index
a987790
..
48aaa9c
100644
(file)
--- a/
ipsets.c
+++ b/
ipsets.c
@@
-296,7
+296,7
@@
create_ipset(struct fw3_ipset *ipset, struct fw3_state *state)
if (ipset->external && *ipset->external)
return;
if (ipset->external && *ipset->external)
return;
- info("Creating ipset %s", ipset->name);
+ info("
*
Creating ipset %s", ipset->name);
first = true;
fw3_pr("create %s %s", ipset->name, methods[ipset->method]);
first = true;
fw3_pr("create %s %s", ipset->name, methods[ipset->method]);
@@
-379,12
+379,11
@@
fw3_destroy_ipsets(struct fw3_state *state, enum fw3_family family)
list_for_each_entry_safe(s, tmp, &state->running_ipsets, running_list)
{
list_for_each_entry_safe(s, tmp, &state->running_ipsets, running_list)
{
- if (hasbit(s->running_flags, family))
- delbit(s->flags, family);
+ del(s->flags, family, family);
- if (fw3_no_family(s))
+ if (fw3_no_family(s
->flags[family == FW3_FAMILY_V6]
))
{
{
- info("Deleting ipset %s", s->name);
+ info("
*
Deleting ipset %s", s->name);
fw3_pr("flush %s\n", s->name);
fw3_pr("destroy %s\n", s->name);
fw3_pr("flush %s\n", s->name);
fw3_pr("destroy %s\n", s->name);