aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bssgp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-03-19 20:33:14 -0400
committerMichael Mann <mmann78@netscape.net>2016-03-20 17:38:03 +0000
commit1e60d63c8c6882c8c0bdb00cf6df594e1bb6fccf (patch)
tree4147c4f2bee3b93c250a49fa8ec337072c80e713 /epan/dissectors/packet-bssgp.c
parent2b2fc64447e5f778d969e6c850e9196d248cbbe1 (diff)
Create call_data_dissector() to call data dissector.
This saves many dissectors the need to find the data dissector and store a handle to it. There were also some that were finding it, but not using it. For others this was the only reason for their handoff function, so it could be eliminated. Change-Id: I5d3f951ee1daa3d30c060d21bd12bbc881a8027b Reviewed-on: https://code.wireshark.org/review/14530 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r--epan/dissectors/packet-bssgp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index 494d1355a5..82c05ce0a5 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -80,7 +80,6 @@ static guint8 g_pdu_type, g_rim_application_identity;
static proto_tree *gparent_tree;
static dissector_handle_t llc_handle;
static dissector_handle_t rrlp_handle;
-static dissector_handle_t data_handle;
static module_t *bssgp_module;
static dissector_table_t diameter_3gpp_avp_dissector_table;
@@ -941,9 +940,8 @@ de_bssgp_llc_pdu(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 of
if(next_tvb){
if (llc_handle) {
call_dissector(llc_handle, next_tvb, pinfo, gparent_tree);
- }
- else if (data_handle) {
- call_dissector(data_handle, next_tvb, pinfo, gparent_tree);
+ } else {
+ call_data_dissector(next_tvb, pinfo, gparent_tree);
}
}
@@ -1584,8 +1582,8 @@ de_bssgp_rrlp_apdu(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32
if(next_tvb){
if (rrlp_handle) {
call_dissector(rrlp_handle, next_tvb, pinfo, gparent_tree);
- }else if (data_handle) {
- call_dissector(data_handle, next_tvb, pinfo, gparent_tree);
+ } else {
+ call_data_dissector(next_tvb, pinfo, gparent_tree);
}
}
return(len);
@@ -7064,7 +7062,6 @@ proto_reg_handoff_bssgp(void)
{
llc_handle = find_dissector("llcgprs");
rrlp_handle = find_dissector("rrlp");
- data_handle = find_dissector("data");
diameter_3gpp_avp_dissector_table = find_dissector_table("diameter.3gpp");
}