From c07bdeb7419baf7f66e8de386744be9ec4891bb3 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 9 Jul 2013 11:15:14 +0200 Subject: all: show git id in --version information In order to be able to better track regressions or to give support, let us track the Git id as well in version information. This makes the ``--version'' switch actually useful. Signed-off-by: Daniel Borkmann --- flowtop.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'flowtop.c') diff --git a/flowtop.c b/flowtop.c index ef691aa..b9d32cc 100644 --- a/flowtop.c +++ b/flowtop.c @@ -27,6 +27,7 @@ #include "xmalloc.h" #include "conntrack.h" #include "ioops.h" +#include "config.h" #include "str.h" #include "sig.h" #include "geoip.h" @@ -223,7 +224,7 @@ static void flow_entry_get_extended(struct flow_entry *n); static void help(void) { - printf("\nflowtop %s, top-like netfilter TCP/UDP flow tracking\n", + printf("\nflowtop %s, top-like netfilter TCP/UDP/SCTP/.. flow tracking\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" "Usage: flowtop [options]\n" @@ -258,9 +259,9 @@ static void help(void) static void version(void) { - printf("\nflowtop %s, top-like netfilter TCP/UDP flow tracking\n", - VERSION_LONG); - puts("http://www.netsniff-ng.org\n\n" + printf("\nflowtop %s, Git id: %s\n", VERSION_LONG, GITVERSION); + puts("top-like netfilter TCP/UDP/SCTP/.. flow tracking\n" + "http://www.netsniff-ng.org\n\n" "Please report bugs to \n" "Copyright (C) 2011-2013 Daniel Borkmann \n" "Copyright (C) 2011-2012 Emmanuel Roullit \n" -- cgit v1.2.3-54-g00ecf