]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Show libdnet presence in version output.
authorDenis Ovsienko <[email protected]>
Sun, 15 Oct 2017 16:29:58 +0000 (17:29 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 15 Oct 2017 16:31:08 +0000 (17:31 +0100)
As far as I could see from the libdnet header file there is no simple
way to tell the exact version, so let's just say it is unknown version.

tcpdump.c

index 520d69f7d5f17c346787f030ce767a63519c1ba1..7512e37bad6c0ac5be17e0a71c691f6b1015d7fa 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2760,6 +2760,9 @@ print_version(void)
        smi_version_string = nd_smi_version_string();
        if (smi_version_string != NULL)
                (void)fprintf (stderr, "SMI-library: %s\n", smi_version_string);
+#ifdef HAVE_DNET_HTOA
+       (void)fprintf(stderr, "libdnet unknown version\n");
+#endif
 
 #if defined(__SANITIZE_ADDRESS__)
        (void)fprintf (stderr, "Compiled with AddressSanitizer/GCC.\n");