mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Protect the WINDEVICE output code with #ifdef WIN32.
This commit is contained in:
parent
0101e9e0ab
commit
d8ad54907c
1 changed files with 3 additions and 1 deletions
|
|
@ -337,7 +337,8 @@ int print_iflist(void) {
|
|||
log_flush_all();
|
||||
delete Tbl;
|
||||
}
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
if (numifs > 0) {
|
||||
/* Display the mapping from libdnet interface names (like "eth0") to
|
||||
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_flush_all();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* OK -- time to handle routes */
|
||||
routes = getsysroutes(&numroutes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue