diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-16 23:17:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-16 23:17:27 +0000 |
commit | 7bd2e232a9994756ba0f97d4d93ce64fe885e7df (patch) | |
tree | 564e732958fa7b21a0ce2aaf6f0123b674ea3a71 /packet-gsm_a.c | |
parent | 21313199e4282797e5cbebb039c417cf8fca739f (diff) | |
download | wireshark-7bd2e232a9994756ba0f97d4d93ce64fe885e7df.tar.gz wireshark-7bd2e232a9994756ba0f97d4d93ce64fe885e7df.tar.bz2 wireshark-7bd2e232a9994756ba0f97d4d93ce64fe885e7df.zip |
Export "protocol_t" as an opaque type.
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()"
take a "protocol_t *" as an argument, so they don't have to look up the
"protocol_t" - this will probably speed them up considerably, and
they're called on almost every dissector handoff.
Get rid of a number of "proto_is_protocol_enabled()" calls that aren't
necessary (dissectors called through handles, including those called
through dissector tables, or called as heuristic dissectors, aren't even
called if their protocol isn't enabled).
Change some direct dissector calls to go through handles.
svn path=/trunk/; revision=8979
Diffstat (limited to 'packet-gsm_a.c')
-rw-r--r-- | packet-gsm_a.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/packet-gsm_a.c b/packet-gsm_a.c index b5022c1319..da130b0660 100644 --- a/packet-gsm_a.c +++ b/packet-gsm_a.c @@ -38,7 +38,7 @@ * Formats and coding * (3GPP TS 24.080 version 4.3.0 Release 4) * - * $Id: packet-gsm_a.c,v 1.5 2003/11/09 22:41:55 guy Exp $ + * $Id: packet-gsm_a.c,v 1.6 2003/11/16 23:17:18 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -10169,12 +10169,6 @@ dissect_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) gchar *str; - if (!proto_is_protocol_enabled(proto_a_rp)) - { - call_dissector(data_handle, tvb, pinfo, tree); - return; - } - if (check_col(pinfo->cinfo, COL_INFO)) { col_append_str(pinfo->cinfo, COL_INFO, "(RP) "); @@ -10271,12 +10265,6 @@ dissect_bssmap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) gchar *str; - if (!proto_is_protocol_enabled(proto_a_bssmap)) - { - call_dissector(data_handle, tvb, pinfo, tree); - return; - } - if (check_col(pinfo->cinfo, COL_INFO)) { col_append_str(pinfo->cinfo, COL_INFO, "(BSSMAP) "); @@ -10380,12 +10368,6 @@ dissect_dtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) int hf_idx; - if (!proto_is_protocol_enabled(proto_a_dtap)) - { - call_dissector(data_handle, tvb, pinfo, tree); - return; - } - len = tvb_length(tvb); if (len < 2) |