aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-01-08 00:29:56 +0000
committerEvan Huus <eapache@gmail.com>2014-01-08 00:29:56 +0000
commit1678d378e74993bfff01e56b5d1fe8f348811b04 (patch)
tree46f1414dcc22bc5043457578753f4ec0724c9fa6
parentd28084d1839bb581229f72acc37608b00c2caba7 (diff)
Explicitly reject two-pass live capture, it doesn't work anyways.
svn path=/trunk/; revision=54643
-rw-r--r--tshark.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index acb66ec421..53a8764054 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1783,6 +1783,14 @@ main(int argc, char *argv[])
/*
* "-r" wasn't specified, so we're doing a live capture.
*/
+ if (perform_two_pass_analysis) {
+ /* Two-pass analysis doesn't work with live capture since it requires us
+ * to buffer packets until we've read all of them, but a live capture
+ * has no useful/meaningful definition of "all" */
+ cmdarg_err("Live captures do not support two-pass analysis.");
+ return 1;
+ }
+
if (global_capture_opts.saving_to_file) {
/* They specified a "-w" flag, so we'll be saving to a capture file. */