diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-03 20:04:01 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-03 20:04:01 +0000 |
commit | 1488ce8e02648144fb8facc5939757aea75021b7 (patch) | |
tree | ac45abc2cf294565955ca34d2af1eda9d05fbebc /capture-wpcap.c | |
parent | 7944bfe10d38532deca7f4a133e942c183a1fa46 (diff) |
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
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r-- | capture-wpcap.c | 16 |
1 files changed, 0 insertions, 16 deletions
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 */ } /* |