1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-25 23:59:01 +00:00

Remove the unused (and broken) intf_get_desc function from libdnet-stripped. It

used to be used to get the interface description back when the eth_open
correlation code worked that way.
This commit is contained in:
david
2008-06-20 20:32:51 +00:00
parent 450052603b
commit f557cbe90e
2 changed files with 0 additions and 22 deletions

View File

@@ -37,9 +37,6 @@ struct adapter {
char *desc;
};
/* XXX */
extern const char *intf_get_desc(intf_t *intf, const char *device);
eth_t *
eth_open(const char *device)
{

View File

@@ -271,25 +271,6 @@ intf_get(intf_t *intf, struct intf_entry *entry)
return (0);
}
/* XXX - gross hack required by eth-win32:eth_open() */
const char *
intf_get_desc(intf_t *intf, const char *name)
{
static char desc[MAXLEN_IFDESCR + 1];
MIB_IFROW ifrow;
if (_refresh_tables(intf) < 0)
return (NULL);
ifrow.dwIndex = _find_ifindex(intf, name);
if (GetIfEntry(&ifrow) != NO_ERROR)
return (NULL);
return (desc);
}
/* Converts a dnet interface name (ifname) to its pcap equivalent, which is stored in
pcapdev (up to a length of pcapdevlen). Returns 0 and fills in pcapdev if successful. */
int intf_get_pcap_devname(const char *ifname, char *pcapdev, int pcapdevlen) {