1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

a bunch of misc. changes

This commit is contained in:
fyodor
2005-12-29 11:34:45 +00:00
parent 4a3a773963
commit e2b19b36a3
24 changed files with 2477 additions and 1821 deletions

View File

@@ -2134,14 +2134,14 @@ int collect_dnet_interfaces(const struct intf_entry *entry, void *arg) {
Strncpy(dcrn->ifaces[numifaces].devfullname, entry->intf_name, sizeof(dcrn->ifaces[numifaces].devfullname));
/* Interface type */
if (entry->intf_type & INTF_TYPE_ETH) {
if (entry->intf_type == INTF_TYPE_ETH) {
dcrn->ifaces[numifaces].device_type = devt_ethernet;
/* Collect the MAC address since this is ethernet */
memcpy(dcrn->ifaces[numifaces].mac, &entry->intf_link_addr.addr_eth.data, 6);
}
else if (entry->intf_type & INTF_TYPE_LOOPBACK)
else if (entry->intf_type == INTF_TYPE_LOOPBACK)
dcrn->ifaces[numifaces].device_type = devt_loopback;
else if (entry->intf_type & INTF_TYPE_TUN)
else if (entry->intf_type == INTF_TYPE_TUN)
dcrn->ifaces[numifaces].device_type = devt_p2p;
else dcrn->ifaces[numifaces].device_type = devt_other;