From d95c2f1eb788c4ccb1ce6f4add61943dbb334f07 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 11 Sep 2012 17:34:37 +0200 Subject: 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. --- lib/session.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/session.c') 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, "\n" " %s\n" + " \n", ipset_data_setname(data), - type->name); + type->name, type->revision); break; default: break; -- cgit v1.2.3