aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-05-12 03:18:34 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-05-12 03:18:34 +0000
commit009156289f5af6d6abe25c0b24f0b439bc996f47 (patch)
treec103eac46fa0a63a2535c91386947715c15589e6 /tshark.c
parent995d748f0561867b02682d2468fb7ae935866de3 (diff)
downloadwireshark-009156289f5af6d6abe25c0b24f0b439bc996f47.tar.gz
wireshark-009156289f5af6d6abe25c0b24f0b439bc996f47.tar.bz2
wireshark-009156289f5af6d6abe25c0b24f0b439bc996f47.zip
Fix the test.sh failures based on Guy's suggestion in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5445#c15 :
Add a new tap flag to indicate that a tap listener is just a "dissector helper", that is, a tap which is used by a dissector to help it do its dissection but does not, itself, require dissection. Use this new flag in the dissectors which register taps. Remove the (now-unused) have_tap_listeners() function. svn path=/trunk/; revision=37069
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tshark.c b/tshark.c
index 8a79128f2e..38964e75d8 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1605,7 +1605,7 @@ main(int argc, char *argv[])
if we're writing to a pipe. */
if (global_capture_opts.saving_to_file &&
global_capture_opts.output_to_pipe) {
- if (have_tap_listeners()) {
+ if (tap_listeners_require_dissection()) {
cmdarg_err("Taps aren't supported when saving to a pipe.");
return 1;
}
@@ -1680,8 +1680,8 @@ main(int argc, char *argv[])
we're using a read filter on the packets;
- we're using any taps. */
- do_dissection = print_packet_info || rfcode || have_tap_listeners();
+ we're using any taps that need dissection. */
+ do_dissection = print_packet_info || rfcode || tap_listeners_require_dissection();
if (cf_name) {
/*