summaryrefslogtreecommitdiffstats
path: root/ipset_ipportiphash.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu>2008-10-21 22:04:47 +0000
committer/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu>2008-10-21 22:04:47 +0000
commitfac5288ad80b7ca2f23d1d5acf6ced98a61fd8eb (patch)
treedd463fdaf37a4daf8dddddd63ccd45daee0ad883 /ipset_ipportiphash.c
parentb8d6cfc169bf79b72faaab6ef7940798dbfe9328 (diff)
- macipmap type reported misleading deprecated separator
tokens and printed the old one at listing set elements. Token printing was errorneous too. (Bugs reported by Krzysztof Oledzki) - Warn only once about deprecated separator tokens in restore mode.
Diffstat (limited to 'ipset_ipportiphash.c')
-rw-r--r--ipset_ipportiphash.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipset_ipportiphash.c b/ipset_ipportiphash.c
index 0bd2e9f..5cb920d 100644
--- a/ipset_ipportiphash.c
+++ b/ipset_ipportiphash.c
@@ -198,10 +198,9 @@ adt_parser(unsigned cmd, const char *optarg, void *data)
DP("ipportiphash: %p %p", optarg, data);
- if ((ptr = strchr(tmp, ':')) || (ptr = strchr(tmp, '%')))
- fprintf(stderr, "Warning: please replace old separator character '%s.1' with ','.\n"
- "Next release won't support it.\n",
- ptr);
+ if (((ptr = strchr(tmp, ':')) || (ptr = strchr(tmp, '%'))) && ++warn_once == 1)
+ fprintf(stderr, "Warning: please use ',' separator token between ip,port,ip.\n"
+ "Next release won't support old separator tokens.\n");
ptr = strsep(&tmp, ":%,");
parse_ip(ptr, &mydata->ip);