]> granicus.if.org Git - ipset/commitdiff
Print protocol version together with ipset version
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 3 Feb 2011 12:05:22 +0000 (13:05 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 3 Feb 2011 12:05:22 +0000 (13:05 +0100)
src/ipset.c

index 634ad9024d0a79a19a455f4a28bc16731b73b7ec..05f8ef34672a12db6492bc7815c63e8ad11656a8 100644 (file)
@@ -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);