From 1488ce8e02648144fb8facc5939757aea75021b7 Mon Sep 17 00:00:00 2001 From: stig Date: Mon, 3 Nov 2008 20:04:01 +0000 Subject: Do not use functions for remote capture on local interfaces. This makes it possible to compile with remote capture features on unix. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26681 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture-wpcap.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'capture-wpcap.c') diff --git a/capture-wpcap.c b/capture-wpcap.c index 90baec774b..400b89f08b 100644 --- a/capture-wpcap.c +++ b/capture-wpcap.c @@ -612,29 +612,14 @@ get_remote_interface_list(const char *hostname, const char *port, GList * get_interface_list(int *err, char **err_str) { -#ifdef HAVE_PCAP_REMOTE - char source[PCAP_BUF_SIZE]; -#else GList *il = NULL; wchar_t *names; char *win95names; char ascii_name[MAX_WIN_IF_NAME_LEN + 1]; char ascii_desc[MAX_WIN_IF_NAME_LEN + 1]; int i, j; -#endif char errbuf[PCAP_ERRBUF_SIZE]; -#ifdef HAVE_PCAP_REMOTE - if (p_pcap_createsrcstr(source, PCAP_SRC_IFLOCAL, NULL, NULL, - NULL, errbuf) == -1) { - *err = CANT_GET_INTERFACE_LIST; - if (err_str != NULL) - *err_str = cant_get_if_list_error_message(errbuf); - return NULL; - } - return get_interface_list_findalldevs_ex(source, NULL, err, err_str); -#else - #ifdef HAVE_PCAP_FINDALLDEVS if (p_pcap_findalldevs != NULL) return get_interface_list_findalldevs(err, err_str); @@ -775,7 +760,6 @@ get_interface_list(int *err, char **err_str) } return il; -#endif /* HAVE_PCAP_REMOTE */ } /* -- cgit v1.2.3