aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ansi_637.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-16 23:17:27 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-16 23:17:27 +0000
commite1d4ae571f1026d344d9364e16bd6628af6d4bb2 (patch)
tree564e732958fa7b21a0ce2aaf6f0123b674ea3a71 /packet-ansi_637.c
parente28479bb2dbc17a6547812767e82c24bb6ec1ad2 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8979 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ansi_637.c')
-rw-r--r--packet-ansi_637.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/packet-ansi_637.c b/packet-ansi_637.c
index 88fbc3cddc..36f0ea4eb4 100644
--- a/packet-ansi_637.c
+++ b/packet-ansi_637.c
@@ -9,7 +9,7 @@
* Short Message Service
* 3GPP2 C.S0015-0 TIA/EIA-637-A
*
- * $Id: packet-ansi_637.c,v 1.2 2003/10/22 20:59:01 guy Exp $
+ * $Id: packet-ansi_637.c,v 1.3 2003/11/16 23:17:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1674,12 +1674,6 @@ dissect_ansi_637_tele(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *ansi_637_tree = NULL;
gchar *str = NULL;
- if (!proto_is_protocol_enabled(proto_ansi_637_tele))
- {
- call_dissector(data_handle,tvb, pinfo, tree);
- return;
- }
-
if (check_col(pinfo->cinfo, COL_PROTOCOL))
{
col_set_str(pinfo->cinfo, COL_PROTOCOL, ansi_proto_name_short);
@@ -1792,12 +1786,6 @@ dissect_ansi_637_trans(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint8 oct;
guint8 len;
- if (!proto_is_protocol_enabled(proto_ansi_637_trans))
- {
- call_dissector(data_handle,tvb, pinfo, tree);
- return;
- }
-
if (check_col(pinfo->cinfo, COL_PROTOCOL))
{
col_set_str(pinfo->cinfo, COL_PROTOCOL, ansi_proto_name_short);