diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-05 12:01:34 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-05 12:35:56 +0200 |
commit | 3a3d85b3c787271e4860ca590d716cf557c1fb7e (patch) | |
tree | 5ff939125deb837e4760b727b0602996c1132c5c /utils.c | |
parent | 5ee2129eaa23a28bfef6d20c273cafc0be559b3d (diff) | |
download | firewall3-3a3d85b3c787271e4860ca590d716cf557c1fb7e.tar.gz |
Extend ipset option syntax to support specifying directions inplace.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |