mirror of
https://github.com/nmap/nmap.git
synced 2026-02-06 05:26:34 +00:00
Treat interfaces with Ethernet addresses as Ethernet. See #2711
This commit is contained in:
@@ -1522,7 +1522,8 @@ static int collect_dnet_interfaces(const struct intf_entry *entry, void *arg) {
|
||||
sizeof(dcrn->ifaces[dcrn->numifaces].devfullname));
|
||||
|
||||
/* Interface type */
|
||||
if (entry->intf_type == INTF_TYPE_ETH && (entry->intf_flags & INTF_FLAG_NOARP) == 0) {
|
||||
if ((entry->intf_type == INTF_TYPE_ETH || entry->intf_link_addr.addr_type == ADDR_TYPE_ETH)
|
||||
&& (entry->intf_flags & INTF_FLAG_NOARP) == 0) {
|
||||
dcrn->ifaces[dcrn->numifaces].device_type = devt_ethernet;
|
||||
/* Collect the MAC address since this is ethernet */
|
||||
memcpy(dcrn->ifaces[dcrn->numifaces].mac, &entry->intf_link_addr.addr_eth.data, 6);
|
||||
|
||||
Reference in New Issue
Block a user