diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
commit | 4877553530fc356888edb95332b24eaeaadeee80 (patch) | |
tree | dece920ad31185cc514f42c162bd238ed5edcd14 /epan | |
parent | fcd5b352af60e034a4b63601272b43b6644029cd (diff) | |
download | wireshark-4877553530fc356888edb95332b24eaeaadeee80.tar.gz wireshark-4877553530fc356888edb95332b24eaeaadeee80.tar.bz2 wireshark-4877553530fc356888edb95332b24eaeaadeee80.zip |
Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_X
which also takes a handle as an argument and thus doesn't call
dissect_data directly.
svn path=/trunk/; revision=4270
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h index 9721ba1cc0..60699f413a 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.20 2001/11/15 10:58:51 guy Exp $ + * $Id: proto.h,v 1.21 2001/11/26 05:13:14 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -62,6 +62,14 @@ struct value_string; } \ } +/* check protocol activation */ +#define CHECK_DISPLAY_AS_X(x_handle,index, tvb, pinfo, tree) { \ + if (!proto_is_protocol_enabled(index)) { \ + call_dissector(x_handle,tvb, pinfo, tree); \ + return; \ + } \ + } + enum { BASE_NONE, BASE_DEC, |