]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: add more information to `nft -V`.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 3 Mar 2020 23:15:30 +0000 (00:15 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Mar 2020 11:39:50 +0000 (12:39 +0100)
commit1074015187d54ced41341aeb7f9e6021580ad1d3
tree4a429abe788b33ce933440f438fc233cbc9b6801
parent6ca4dfa45345dc4ac18a83be5e2326bad5a69fe6
main: add more information to `nft -V`.

In addition to the package-version and release-name, output the CLI
implementation (if any) and whether mini-gmp was used, e.g.:

    $ ./src/nft -V
    nftables v0.9.3 (Topsy)
      cli:          linenoise
      json:         yes
      minigmp:      no
      libxtables:   yes

[pablo@netfilter.org: add json and libxtables, use -V ]

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/Makefile.am
src/main.c