diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-12 03:18:34 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-12 03:18:34 +0000 |
commit | 009156289f5af6d6abe25c0b24f0b439bc996f47 (patch) | |
tree | c103eac46fa0a63a2535c91386947715c15589e6 /tshark.c | |
parent | 995d748f0561867b02682d2468fb7ae935866de3 (diff) | |
download | wireshark-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { /* |