Leave it up to dumpcap to determine whether WinPcap was loaded and, if
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 23:21:18 +0000 (23:21 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 23:21:18 +0000 (23:21 +0000)
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40336 f5534014-38df-0310-8fa8-9805f1628bb7

tshark.c

index 7b9827d33b0f3efcbfeded7a96797cd27d9f45bf..f2bd7bf5d2321aa08c7091da7752cb8d7e242e64 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -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)) {