Leave it up to dumpcap to determine whether WinPcap was loaded and, if

it wasn't, whether it matters; that way you can still capture from a
pipe (named or "-" for standard input) even if you don't have WinPcap.

svn path=/trunk/; revision=40336
This commit is contained in:
Guy Harris 2011-12-29 23:21:18 +00:00
parent 7e531049a0
commit 53eb852fa7
1 changed files with 0 additions and 13 deletions

View File

@ -1784,19 +1784,6 @@ main(int argc, char *argv[])
(or get a list of link-layer types for a live capture device);
do we have support for live captures? */
#ifdef HAVE_LIBPCAP
#ifdef _WIN32
if (!has_wpcap) {
char *detailed_err;
cmdarg_err("WinPcap couldn't be found.");
detailed_err = cant_load_winpcap_err("TShark");
cmdarg_err_cont("%s", detailed_err);
g_free(detailed_err);
return 2;
}
#endif
/* trim the interface name and exit if that failed */
if (!capture_opts_trim_iface(&global_capture_opts,
(prefs_p->capture_device) ? get_if_name(prefs_p->capture_device) : NULL)) {