1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-18 13:39:02 +00:00

Grab pcap library name as well as version

This commit is contained in:
dmiller
2016-04-28 02:40:16 +00:00
parent 312cff5ac5
commit fbddc99f6d

View File

@@ -3252,10 +3252,11 @@ static void display_nmap_version() {
with.push_back(std::string("libpcre-") + get_word_or_quote(pcre_version(), 0));
#endif
const char *pcap_version = pcap_lib_version();
#ifdef PCAP_INCLUDED
with.push_back(std::string("nmap-libpcap-") + get_word_or_quote(pcap_lib_version(), 2));
with.push_back(std::string("nmap-") + get_word_or_quote(pcap_version, 0) + std::string("-") + get_word_or_quote(pcap_version, 2));
#else
with.push_back(std::string("libpcap-") + get_word_or_quote(pcap_lib_version(), 2));
with.push_back(get_word_or_quote(pcap_version, 0) + std::string("-") + get_word_or_quote(pcap_version, 2));
#endif
#ifdef DNET_INCLUDED