From 8d3ea3476cec69b31423e34bc5b7576198c37668 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 3 Feb 2011 13:05:22 +0100 Subject: Print protocol version together with ipset version --- src/ipset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ipset.c') diff --git a/src/ipset.c b/src/ipset.c index 634ad90..05f8ef3 100644 --- a/src/ipset.c +++ b/src/ipset.c @@ -553,7 +553,8 @@ parse_commandline(int argc, char *argv[]) argv[1]); return exit_error(PARAMETER_PROBLEM, "No command specified."); case IPSET_CMD_VERSION: - printf("%s v%s.\n", program_name, program_version); + printf("%s v%s, protocol version: %u\n", + program_name, program_version, IPSET_PROTOCOL); if (interactive) return 0; return exit_error(NO_PROBLEM, NULL); -- cgit v1.2.3