mirror of
https://github.com/nmap/nmap.git
synced 2026-02-04 20:46:33 +00:00
List all interface aliases on Windows. All aliases of one interface will be
given the same name, e.g., "eth0". Use -e to choose the interface and -S to choose the source address.
This commit is contained in:
@@ -103,7 +103,12 @@ _ifrow_to_entry(intf_t *intf, MIB_IFROW *ifrow, struct intf_entry *entry)
|
||||
struct addr *ap, *lap;
|
||||
int i;
|
||||
|
||||
/* The total length of the entry may be passed in inside entry.
|
||||
Remember it and clear the entry. */
|
||||
u_int intf_len = entry->intf_len;
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
/* Restore the length. */
|
||||
entry->intf_len = intf_len;
|
||||
|
||||
for (i = 0; i < intf->ifcombo[ifrow->dwType].cnt; i++) {
|
||||
if (intf->ifcombo[ifrow->dwType].idx[i] == ifrow->dwIndex)
|
||||
|
||||
Reference in New Issue
Block a user