}
}
+#ifdef HAVE_LIBPCAP
if (!capture_opts.saving_to_file) {
/* We're not saving the capture to a file; if "-q" wasn't specified,
we should print packet information */
exit(1);
}
}
+#else
+ /* We're not saving the capture to a file; if "-q" wasn't specified,
+ we should print packet information */
+ if (!quiet)
+ print_packet_info = TRUE;
+#endif
#ifndef HAVE_LIBPCAP
if (capture_option_specified)
}
/* Process the packets in the file */
+#ifdef HAVE_LIBPCAP
err = load_cap_file(&cfile, capture_opts.save_file, out_file_type);
+#else
+ err = load_cap_file(&cfile, NULL, out_file_type);
+#endif
if (err != 0) {
epan_cleanup();
exit(2);