summaryrefslogtreecommitdiff
path: root/misc/ss.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2020-08-01 10:26:41 -0700
committerStephen Hemminger <stephen@networkplumber.org>2020-08-03 10:02:47 -0700
commitfbef655568ee931a82ad463a6f46f01ce3fb27aa (patch)
tree6425f1ebc5d0ac403f7efcc38e3d87d7de6fb8d5 /misc/ss.c
parentcb17e0cc578162a33d62afcbf9df471183a6b0c7 (diff)
downloadiproute2-fbef655568ee931a82ad463a6f46f01ce3fb27aa.tar.gz
replace SNAPSHOT with auto-generated version string
Replace the iproute2 snapshot with a version string which is autogenerated as part of the build process using git describe. This will also allow seeing if the version of the command is built from the same sources is as upstream. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'misc/ss.c')
-rw-r--r--misc/ss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ss.c b/misc/ss.c
index 5aa10e4a..35066bf6 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -35,7 +35,7 @@
#include "ll_map.h"
#include "libnetlink.h"
#include "namespace.h"
-#include "SNAPSHOT.h"
+#include "version.h"
#include "rt_names.h"
#include "cg_map.h"
@@ -5411,7 +5411,7 @@ int main(int argc, char *argv[])
break;
case 'v':
case 'V':
- printf("ss utility, iproute2-ss%s\n", SNAPSHOT);
+ printf("ss utility, iproute2-%s\n", version);
exit(0);
case 'z':
show_sock_ctx++;