diff options
author | Evan Huus <eapache@gmail.com> | 2014-01-08 00:29:56 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-01-08 00:29:56 +0000 |
commit | 1678d378e74993bfff01e56b5d1fe8f348811b04 (patch) | |
tree | 46f1414dcc22bc5043457578753f4ec0724c9fa6 | |
parent | d28084d1839bb581229f72acc37608b00c2caba7 (diff) |
Explicitly reject two-pass live capture, it doesn't work anyways.
svn path=/trunk/; revision=54643
-rw-r--r-- | tshark.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. */ |