1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Windows build fixes for libdnet-stripped

This commit is contained in:
dmiller
2025-04-11 16:39:12 +00:00
parent a62aa864eb
commit 21e5cc67b4
21 changed files with 189 additions and 24 deletions

View File

@@ -3908,7 +3908,7 @@ int DnetName2PcapName(const char *dnetdev, char *pcapdev, int pcapdevlen) {
// OK, so it isn't in the cache. Let's ask dnet for it.
/* Converts a dnet interface name (ifname) to its pcap equivalent, which is stored in
pcapdev (up to a length of pcapdevlen). Returns 1 and fills in pcapdev if successful. */
if (eth_get_pcap_devname(dnetdev, tmpdev, sizeof(tmpdev)) != 0) {
if (intf_get_pcap_devname(dnetdev, tmpdev, sizeof(tmpdev)) != 0) {
// We've got it. Let's add it to the not found cache
if (NNFCsz >= NNFCcapacity) {
NNFCcapacity <<= 2;