diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-09-11 17:34:37 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-09-11 17:34:37 +0200 |
commit | d95c2f1eb788c4ccb1ce6f4add61943dbb334f07 (patch) | |
tree | 6bc859294d1bd1c2045a80900d5dab88db0c47b0 /lib | |
parent | aec28884e7fdce80d8efc73276a4f5b675959701 (diff) |
The set type revision number is added to the header part of listing
Incompatibility: if your script rely on the number of lines in the header
of set listings, then the new line
Revision: number
can break your script.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/session.c b/lib/session.c index 3803bfa..d5f220f 100644 --- a/lib/session.c +++ b/lib/session.c @@ -842,18 +842,19 @@ list_create(struct ipset_session *session, struct nlattr *nla[]) break; case IPSET_LIST_PLAIN: safe_snprintf(session, "%sName: %s\n" - "Type: %s\nHeader: ", + "Type: %s\nRevision: %u\nHeader: ", session->printed_set ? "\n" : "", ipset_data_setname(data), - type->name); + type->name, type->revision); break; case IPSET_LIST_XML: safe_snprintf(session, "<ipset name=\"%s\">\n" " <type>%s</type>\n" + " <revision%u</revision\n" " <header>\n", ipset_data_setname(data), - type->name); + type->name, type->revision); break; default: break; |