diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-03 20:04:01 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-03 20:04:01 +0000 |
commit | 1655ca17d054004bddc0a411ce64d49551eddb6d (patch) | |
tree | ac45abc2cf294565955ca34d2af1eda9d05fbebc /capture-wpcap.c | |
parent | ac5dba4586827e722a1579fcc6d3c398bd4ffd77 (diff) | |
download | wireshark-1655ca17d054004bddc0a411ce64d49551eddb6d.tar.gz wireshark-1655ca17d054004bddc0a411ce64d49551eddb6d.tar.bz2 wireshark-1655ca17d054004bddc0a411ce64d49551eddb6d.zip |
Do not use functions for remote capture on local interfaces.
This makes it possible to compile with remote capture features on unix.
svn path=/trunk/; revision=26681
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 */ } /* |