From e9d21d2b8304c184a745382c68a0bfc4122729c4 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu" Date: Tue, 28 Aug 2007 11:23:22 +0000 Subject: New release: 2.3.0 (see ChangeLog) --- ipset_iptree.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipset_iptree.c') diff --git a/ipset_iptree.c b/ipset_iptree.c index cce9884..c3678df 100644 --- a/ipset_iptree.c +++ b/ipset_iptree.c @@ -84,7 +84,7 @@ ip_set_ip_t adt_parser(unsigned cmd, const char *optarg, void *data) DP("iptree: %p %p", optarg, data); - ptr = strsep(&tmp, "%"); + ptr = strsep(&tmp, ":%"); parse_ip(ptr, &mydata->ip); if (tmp) @@ -130,8 +130,8 @@ void printips_sorted(struct set *set, void *data, size_t len, unsigned options) while (len >= offset + sizeof(struct ip_set_req_iptree)) { req = (struct ip_set_req_iptree *)(data + offset); if (mysetdata->timeout) - printf("%s%%%u\n", ip_tostring(req->ip, options), - req->timeout); + printf("%s:%u\n", ip_tostring(req->ip, options), + req->timeout); else printf("%s\n", ip_tostring(req->ip, options)); offset += sizeof(struct ip_set_req_iptree); @@ -164,7 +164,7 @@ void saveips(struct set *set, void *data, size_t len, unsigned options) while (len >= offset + sizeof(struct ip_set_req_iptree)) { req = (struct ip_set_req_iptree *)(data + offset); if (mysetdata->timeout) - printf("-A %s %s%%%u\n", + printf("-A %s %s:%u\n", set->name, ip_tostring(req->ip, options), req->timeout); @@ -180,7 +180,7 @@ void usage(void) { printf ("-N set iptree [--timeout value]\n" - "-A set IP[%%timeout]\n" + "-A set IP[:timeout]\n" "-D set IP\n" "-T set IP\n"); } -- cgit v1.2.3