summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-06-05 12:01:34 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-06-05 12:35:56 +0200
commit3a3d85b3c787271e4860ca590d716cf557c1fb7e (patch)
tree5ff939125deb837e4760b727b0602996c1132c5c /utils.c
parent5ee2129eaa23a28bfef6d20c273cafc0be559b3d (diff)
downloadfirewall3-3a3d85b3c787271e4860ca590d716cf557c1fb7e.tar.gz
Extend ipset option syntax to support specifying directions inplace.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index 99310f7..66c1865 100644
--- a/utils.c
+++ b/utils.c
@@ -557,9 +557,7 @@ write_ipset_uci(struct uci_context *ctx, struct fw3_ipset *s,
list_for_each_entry(type, &s->datatypes, list)
{
- sprintf(buf, "%s_%s", type->dest ? "dst" : "src",
- fw3_ipset_type_names[type->type]);
-
+ sprintf(buf, "%s_%s", type->dir, fw3_ipset_type_names[type->type]);
ptr.o = NULL;
ptr.option = "match";
ptr.value = buf;