mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
Protect the WINDEVICE output code with #ifdef WIN32.
This commit is contained in:
@@ -338,6 +338,7 @@ int print_iflist(void) {
|
|||||||
delete Tbl;
|
delete Tbl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
if (numifs > 0) {
|
if (numifs > 0) {
|
||||||
/* Display the mapping from libdnet interface names (like "eth0") to
|
/* Display the mapping from libdnet interface names (like "eth0") to
|
||||||
WinPcap interface names (like "\Device\NPF_{...}"). This is the same
|
WinPcap interface names (like "\Device\NPF_{...}"). This is the same
|
||||||
@@ -360,6 +361,7 @@ int print_iflist(void) {
|
|||||||
log_write(LOG_PLAIN, "%s\n", Tbl.printableTable(NULL));
|
log_write(LOG_PLAIN, "%s\n", Tbl.printableTable(NULL));
|
||||||
log_flush_all();
|
log_flush_all();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* OK -- time to handle routes */
|
/* OK -- time to handle routes */
|
||||||
routes = getsysroutes(&numroutes);
|
routes = getsysroutes(&numroutes);
|
||||||
|
|||||||
Reference in New Issue
Block a user