summaryrefslogtreecommitdiff
path: root/pcap-dag.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-06 22:01:38 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-06 22:01:38 -0700
commitf290068cc95f6e635791ee7f871e7118b6458502 (patch)
tree9f3fd77cf51551ccbc12bf6598218978c2fe33e4 /pcap-dag.c
parentbad8c25c99cf5511125c7a7e688113c0811841c4 (diff)
downloadlibpcap-f290068cc95f6e635791ee7f871e7118b6458502.tar.gz
Push pcap_lib_version() into the pcap-XXX.c files.
This lets us move the Windows version to pcap-win32.c, so we don't have to include packet32.h in pcap.c. It also gets rid of some #ifdefs, and lets us construct the version string on UN*X platforms, and MS-DOS, at compile time.
Diffstat (limited to 'pcap-dag.c')
-rw-r--r--pcap-dag.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pcap-dag.c b/pcap-dag.c
index 03946870..a70c76a3 100644
--- a/pcap-dag.c
+++ b/pcap-dag.c
@@ -1360,12 +1360,14 @@ pcap_create_interface(const char *device, char *errbuf)
return NULL;
}
+#include "pcap_version.h"
+
/*
- * Platform-specific information.
+ * Libpcap version string.
*/
const char *
-pcap_platform_lib_version(void)
+pcap_lib_version(void)
{
- return ("DAG-only");
+ return (PCAP_VERSION_STRING " (DAG-only)");
}
#endif