From f557cbe90e6760bd275bca19f9fedb6577bc7864 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 20 Jun 2008 20:32:51 +0000 Subject: [PATCH] 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. --- libdnet-stripped/src/eth-win32.c | 3 --- libdnet-stripped/src/intf-win32.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/libdnet-stripped/src/eth-win32.c b/libdnet-stripped/src/eth-win32.c index c33c56fbc..7c6a4ab29 100644 --- a/libdnet-stripped/src/eth-win32.c +++ b/libdnet-stripped/src/eth-win32.c @@ -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) { diff --git a/libdnet-stripped/src/intf-win32.c b/libdnet-stripped/src/intf-win32.c index ea38e33c6..9e24975b1 100644 --- a/libdnet-stripped/src/intf-win32.c +++ b/libdnet-stripped/src/intf-win32.c @@ -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) {