1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Remove unneeded g_has_npcap_loopback

This commit is contained in:
dmiller
2025-04-16 00:00:05 +00:00
parent 40b5bda3ac
commit 42170b067f
8 changed files with 12 additions and 47 deletions

View File

@@ -107,10 +107,6 @@
#include <stdio.h>
extern NmapOps o;
#ifdef WIN32
/* from libdnet's intf-win32.c */
extern "C" int g_has_npcap_loopback;
#endif
struct idle_proxy_info {
Target host; /* contains name, IP, source IP, timing info, etc. */
@@ -605,7 +601,7 @@ static void initialize_idleproxy(struct idle_proxy_info *proxy, char *proxyName,
/* First we need a raw socket ... */
if ((o.sendpref & PACKET_SEND_ETH) && (proxy->host.ifType() == devt_ethernet
#ifdef WIN32
|| (g_has_npcap_loopback && proxy->host.ifType() == devt_loopback)
|| (o.have_pcap && proxy->host.ifType() == devt_loopback)
#endif
)) {
if (!setTargetNextHopMAC(&proxy->host))